Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

Previous Previous     Contents     Index     Next Next

How to Enable an NIS+ Client to Use IPv6

  1. Log in as superuser.

  2. Edit the /etc/nsswitch.conf file.

  3. Add the new ipnodes source and specify the naming service (such as ldap).

    ipnodes: ldap [NOTFOUND=return] files

    ipnodes defaults to files. During the transition from IPv4 to IPv6, where all naming services are not aware of IPv6 addresses, you should accept the files default. Otherwise, unnecessary delays might result during the resolution of addresses.

  4. Save the file and reboot the machine.

    Because the nscd daemon caches this information, which it reads at start up, you must reboot the machine now.

Ensuring Compatibility With +/- Syntax

If +/- is used in /etc/passwd, /etc/shadow, and /etc/group files, you will need to modify the nsswitch.conffile to insure compatibility.

  • NIS+. To provide +/- semantics with NIS+, change the passwd and groups sources to compat and add a passwd_compat: nisplus entry to the nsswitch.conf file after the passwd or group entry as shown below:

    passwd: compat
    passwd_compat: nisplus
    group: compat
    group_compat: nisplus

    The above specifies that client routines obtain their network information from /etc files and NIS+ tables as indicated by the +/- entries in the files.

  • NIS. To provide the same syntax as in the SunOS™ 4 release, change the passwd and groups sources to compat.

    passwd: compat
    group: compat

    This specifies that /etc files and NIS maps as indicated by the +/- entries in the files.


Note - Users working on a client machine being served by an NIS+ server running in NIS compatibility mode cannot run ypcat on the netgroup table. Doing so will give you results as if the table were empty even if it has entries.


The Switch File and Password Information


Caution! Caution - files should be the first source in the nsswitch.conf file for passwd information. If files is not the first source, network security could be weakened and users could encounter log in difficulty.


For example, in an NIS+ environment, the passwd line of the nsswitch.conf file should look like this:

passwd: files nisplus

In an NIS environment, the passwd line of the nsswitch.conf file should look like this:

passwd: files nis

Previous Previous     Contents     Index     Next Next