Create 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.

What you’ll need
  • You must have configured LDAP and NIS server access.

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

  1. 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.

    The following command specifies the lookup order of the LDAP and NIS name service sources for the passwd database on the engDataSVM.

    cluster1::>vserver services name-service ns-switch
    modify -vserver engData -database passwd -source files ldap,nis