System Administration Guide: Naming and Directory Services (NIS+)

NIS+ Client Configuration Summary

Table 6–1 shows a summary of the steps required to configure a client named client1 in the domain. It assumes the simplest case, so be sure you are familiar with the more thorough task descriptions before you use this summary as a reference. For the sake of brevity, this summary does not show the responses to each command.

Table 6–1 Setting Up an NIS+ Client: Command Summary



Log in to domain's master. 


Create DES credentials for client. 

rootmaster% nisaddcred -p -P des

Ascertain the Diffie-Hellman .key length. 

rootmaster% nisauthconf

Log in, as superuser, to the client. 

client1% su


Assign the client a domain name. 

client1# domainname

client1# domainname > /etc/defaultdomain

Check that the client's switch configuration file has the correct settings. 

client1# more /etc/nsswitch.conf

Set the Diffie-Hellman key length. 

client1# nisauthconf dh640-0 des

Clean out /var/nis.

client1# rm -rf /var/nis/*

Initialize the client. 

client1# nisinit -c -H rootmaster

Remove the /etc/.rootkey file and restart the keyserver.

client1# svcadm disable network/rpc/keyserv

client1# rm -f /etc/.rootkey

client1# svcadm enable network/rpc/keyserv

Run keylogin on the client.

client1# keylogin -r password:

Reboot the client. 

client1# reboot