If your primary reason for wanting to use NIS is to manage automount information, you have the option of storing the information in Active Directory then retrieving it through the adnisd process or directly through an LDAP request that bypasses the adnisd process.
As an alternative to using the adnisd process, you can use the optional adauto.pl script located in the /usr/share/centrifydc/etc directory to get automount data. The adauto.pl script gets mount point information directly from Active Directory using LDAP. With the adauto.pl script, you can automount home directories using the information from NIS maps without running the adnisd server process.
The adauto.pl script uses the information you store in the auto.home NIS map for the joined zone and any parent zones up the zone hierarchy from which the local computer inherits NIS map entries. Once you add the script to your automount configuration, the automounter program invokes the script and passes it the user name of the user logging on. The adauto.pl script then uses the ldapsearch command to retrieve the mount point information from Active Directory and returns the path to the remote home directory for the user logging on. The automounter will then attempt to connect to that home directory.
To use the adauto.pl script:
Add the appropriate auto.home mount points to Active Directory by importing or creating automount NIS maps.
For more information about importing existing auto.home or auto_home NIS maps, see Importing network NIS maps. For information about creating NIS network maps directly in Active Directory, see Creating new NIS maps in Active Directory.
- Open Access Manager to navigate to a specific zone.
- Expand the zone to display NIS Maps.
- Select NIS Maps, right-click, then click New > Automount.
- Type auto.home or auto_home as the map name, then click OK.
Select the new map, right click, then click New to add a new individual map record. For example, create a map record similar to this for all users in a zone:
Network Path: lmrh2:/home/&
Comments: This is the automount path for users in this zone
Verify the adauto.pl file is available in the /usr/share/centrifydc/etc/ directory and is executable. For example:
ls -l /usr/share/centrifydc/etc/adauto.pl
-rwxr-xr-x 1 root root 1921 Sep 27 10:37 adauto.pl
ln -s /usr/share/centrifydc/etc/adauto.pl /etc/auto.home
On AIX computers, create the link to /etc/auto_home:
ln -s /usr/share/centrifydc/etc/adauto.pl /etc/auto_home
Edit the /etc/auto.master or /etc/auto_master file to call the /etc/auto.home file.
For example, on Linux computers add the following line to the auto.master file:
The specific syntax for the entry is different on different platforms. For example, not all platforms allow you to specify the program keyword in the /etc/auto.master file. For more information about the format of the entry, see the man page for auto.master. For example, on SuSE Linux, the entry should look like this:
On SuSE Linux 10, the corresponding entry is:
/export/home program /etc/auto.home
On AIX and Solaris computers, add an entry like this to the /etc/auto_master file:
On some platforms, you can invoke automount from the command line without editing the /etc/auto.master file. For example, you can invoke automount without editing the /etc/auto.master file by running a command similar to the following on Linux:
automount /export/home/ program /etc/auto.home
Command line mount points are not supported by automount on AIX.
service autofs restart
On Solaris 10, the automount service is managed by the service management facility, smf, under the service identifier:
You can use svcadm to perform administrative actions, such as stopping and restarting the service.