The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.
You can make an automount map such as
auto.home available in LDAP so that the
automounter mounts a user's home directory on demand.
To add the auto.home map to LDAP:
Create an LDIF file that defines entries for the map's name and its contents, for example
auto-home.ldif:dn: nisMapName=auto.home,dc=mydom,dc=com objectClass: top objectClass: nisMap nisMapName: auto.home dn: cn=*,nisMapName=auto.home,dc=mydom,dc=com objectClass: nisObject cn: * nisMapEntry: -rw,sync
nfssvr:/nethome/& nisMapName: auto.homeIn the example,
nfssvris the host name or IP address of the NFS server that exports the users' home directories.If you have configured LDAP authentication, use the following command to add the map to LDAP:
#
ldapadd -xcWD "cn=admin,dc=mydom,dc=com"\-f auto-home.ldifEnter LDAP Password:adding new entry "nisMapName=auto.home,dc=mydom,dc=com" adding new entry "cn=*,nisMapName=auto.home,dc=mydom,dc=com"user_passwordIf you have configured Kerberos authentication, use kinit to obtain a ticket granting ticket (TGT) for the
adminprincipal, and use this form of the command:#
ldapmodify -f auto-home.ldifVerify that the map appears in LDAP:
#
ldapsearch -LLL -x -b "dc=mydom,dc=com" nisMapName=auto.homedn: nisMapName=auto.home,dc=mydom,dc=com objectClass: top objectClass: nisMap nisMapName: auto.home dn: cn=*,nisMapName=auto.home,dc=mydom,dc=com objectClass: nisObject cn: * nisMapEntry: -rw,sync nfssvr.mydom.com:/nethome/& nisMapName: auto.home

