Configuring NSS lookup order
Name Service Switch (NSS) is a cluster service that provides a single configuration location to identify the services (such as NIS or LDAP) for network information such as hosts, groups, netgroups, passwords, and shadow files.
For example, host information may be on an NIS server. Group information may be in an LDAP database.
The NSS configuration specifies which network services the Access Appliance cluster should use to authenticate hosts, users, groups, and netgroups. The configuration also specifies the order in which multiple services should be queried.
To display the current value set on NSS for all groups, hosts, netgroups, passwd, and shadow files
- To display the current value set on nsswitch for all groups, hosts, netgroups, passwd, and shadow files
Network> nsswitch show
To change the order of group items
- To configure the NSS lookup order, enter the following:
Network> nsswitch conf {group|hosts|netgroups|passwd|shadow} value1 [[value2]] [[value3]] [[value4]]group
Selects the group file.
hosts
Selects the hosts file.
netgroups
Selects the netgroups file.
passwd
Selects the password.
shadow
Selects the shadow file.
value
Specifies the following NSS lookup order with the following values:
value1 (required)- { files/nis/winbind/ldap }
value2 (optional) - { files/nis/winbind/ldap }
value3 (optional) - { files/nis/winbind/ldap }
value4 (optional) - { files/nis/winbind/ldap }
For example:
Network> nsswitch conf group nis files Network> nsswitch show
To select DNS, you must use the following command:
Network> nsswitch conf hosts