Configuring NIS clients on HP-UX

To configure the NIS client on an HP-UX computer:

  1. Stop any running NIS service and remove all files in the /var/yp/binding directory. For example, run the following commands:

    /sbin/init.d/nis.client stop
    rm -rf /var/yp/binding/*

  2. Edit the NIS configuration file, /etc/rc.config.d/namesvrs, to set the NIS_CLIENT to 1 and the NIS_DOMAIN to the name of the Centrify zone. For example:


  3. Add the -ypset option to the YPBIND_OPTIONS variable and set the YPSET_ADDR variable to the IP address of the computer where adnisd is installed. For example:


    This step is not required if you want to use the broadcast option to locate the server when you run the ypbind command.

  4. Set the NIS domain name for the client to the zone name of the computer where the adnisd process is running.

    domainname zone_name

  5. Start the ypbind service. On HP-UX, you can start the service by running:

    /sbin/init.d/nis.client start

  6. Modify the passwd, group, and shadow lines in /etc/nsswitch.conf file to use compat as the source:

    passwd: compat
    group: compat
    shadow: compat
  7. Restart services that rely on the NIS domain or reboot the computer to restart all services. The most common services to restart are autofs, pwgrd, cron and sendmail.