To enable LDAP on an SVM, you must use the vserver services name-service ldap create command to associate an LDAP client configuration with the SVM.
- Enable LDAP on the SVM: vserver services name-service ldap create -vserver vserver_name -client-config client_config_name
Starting in ONTAP 9.4, the vserver services name-service ldap create command performs an automatic configuration validation and reports an error message if ONTAP is unable to contact the name server.
Example
The following command enables LDAP on the vs1
SVM and configures it to use the ldap1
LDAP client configuration:
cluster1::> vserver services name-service ldap create -vserver vs1 -client-config ldap1 -client-enabled true
- Validate the status of the name servers by using the vserver services name-service ldap check command.
The following command validates LDAP servers on the SVM vs1.
Example
cluster1::> vserver services name-service ldap check -vserver vs1
| Vserver: vs1 |
| Client Configuration Name: c1 |
| LDAP Status: up |
| LDAP Status Details: Successfully connected to LDAP server "10.11.12.13". |