Skip to main content

Creating a name service switch

The name service switch feature lets you use LDAP or NIS as alternative name service sources. You can use the vserver services name-service ns-switch modify command to specify the look-up order for name service sources.

Before you begin

  • You must have configured LDAP and NIS server access.

  • You must be a cluster administrator or SVM administrator to perform this task.

Specify the lookup order for name service sources: vserver services name-service ns-switch modify -vserver SVM_name -database name_service_switch_database -sources name_service_source_order

For complete command syntax, see the worksheet Configuring LDAP or NIS server access.

Example

The following command specifies the lookup order of the LDAP and NIS name service sources for the passwd database on the engData SVM .
cluster1::>vserver services name-service ns-switch 
modify -vserver engData -database passwd -source files ldap,nis