Skip to main content

How ONTAP name service switch configuration works

ONTAP stores name service configuration information in a table that is the equivalent of the /etc/nsswitch.conf file on UNIX systems. You must understand the function of the table and how ONTAP uses it so that you can configure it appropriately for your environment.

The ONTAP name service switch table determines which name service sources ONTAP consults in which order to retrieve information for a certain type of name service information. ONTAP maintains a separate name service switch table for each SVM.

Database types

The table stores a separate name service list for each of the following database types:

Database typeDefines name service sources for...Valid sources are...
hostsConverting host names to IP addressesfiles, dns
groupLooking up user group informationfiles, nis, ldap
passwdLooking up user informationfiles, nis, ldap
netgroupLooking up netgroup informationfiles, nis, ldap
namemapMapping user namesfiles, ldap

Source types

The sources specify which name service source to use for retrieving the appropriate information.

Specify source type...To look up information in...Managed by the command families...
filesLocal source filesvserver services name-service unix-user

vserver services name-service unix-group

vserver services name-service netgroup

vserver services name-service dns hosts

nisExternal NIS servers as specified in the NIS domain configuration of the SVMvserver services name-service nis-domain
ldapExternal LDAP servers as specified in the LDAP client configuration of the SVMvserver services name-service ldap
dnsExternal DNS servers as specified in the DNS configuration of the SVMvserver services name-service dns

Even if you plan to use NIS or LDAP for both data access and SVM administration authentication, you should still include files and configure local users as a fallback in case NIS or LDAP authentication fails.