Configuring NIS clients on HP-UX
To configure the NIS client on an HP-UX computer:
-
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/* -
Edit the NIS configuration file, /etc/rc.config.rc/namesrvs, to set the NIS_CLIENT to 1and the NIS_DOMAIN to the name of the Centrify zone. For example:
NIS_CLIENT=1
NIS_DOMAIN="zone-name" -
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:
YPBIND_OPTIONS="-ypset"
YPSET_ADDR="15.13.115.168"This step is not required if you want to use the broadcast option to locate the server when you run the ypbind command.
-
Set the NIS domain name for the client to the zone name of the computer where the adnisd process is running.
domainname zone_name
-
Start the ypbind service. On HP-UX, you can start the service by running:
/sbin/init.d/nis.client start
-
Modify the passwd, group, and shadow lines in /etc/nsswitch.conf file to use compat as the source:
passwd: compat
group: compat
shadow: compat - Restart services that rely on the NIS domain or reboot the computer to restart all services. The most common services to restart are autofs, NSCD, cron and sendmail.