Managing automounts without using NIS

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.

Note:   The automount information must be stored in Active Directory. You can then choose whether to retrieve it using the Centrify Network Information Service (adnisd) or an LDAP query.

As an alternative to using the adnisd process, you can use the optional script located in the /usr/share/centrifydc/etc directory to get automount data. The script gets mount point information directly from Active Directory using LDAP. With the script, you can automount home directories using the information from NIS maps without running the adnisd server process.

The 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 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 script:

  1. 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.

    For example:

    • 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:

      Name: *
      Network Path: lmrh2:/home/&
      Comments: This is the automount path for users in this zone

  2. If you are managing mount points on Linux or Solaris, edit the /etc/nsswitch.conf file to change the automount entry from nis to files. For example:

    vi /etc/nsswitch.conf
    automount: files

    For other platforms, such as AIX, you can skip this step.

  3. Verify the file is available in the /usr/share/centrifydc/etc/ directory and is executable. For example:

    ls -l /usr/share/centrifydc/etc/
    total 1208
    -rwxr-xr-x 1 root root 1921 Sep 27 10:37

  4. Create a symbolic link for /etc/auto.home or /etc/auto_home to the file. For example, on Linux computers:

    ln -s /usr/share/centrifydc/etc/ /etc/auto.home

    On AIX computers, create the link to /etc/auto_home:

    ln -s /usr/share/centrifydc/etc/ /etc/auto_home

  5. 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:

    /export/home program:/etc/auto.home

    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:

    /export/home /etc/auto.home

    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:

    /export/home /etc/auto_home

    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.

  6. Restart the autofs process. For example, on Linux:

    service autofs restart

    On AIX:


    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.