ldapclient -v manual -a defaultSearchBase=dc=cisco,dc=com -a serviceSearchDescriptor=passwd:ou=People,dc=cisco,dc=com -a serviceSearchDescriptor=shadow:ou=People,dc=cisco,dc=com -a defaultServerList=10.74.125.39 -a domainName=cisco.com -a authenticationMethod=simple -a defaultSearchScope=sub -a credentialLevel=proxy -a proxyDN=uid=testbind,dc=cisco,dc=com -a proxyPassword=testbind
To verify if the LDAP client is working well, run the following command:
# getent passwd <username>
# ldaplist -l passwd <username>
To Verify the following to file with correct parameters:
/var/ldap/ldap_client_file
NS_LDAP_FILE_VERSION= 2.0
NS_LDAP_SERVERS= 10.74.125.39
NS_LDAP_SEARCH_BASEDN= dc=cisco,dc=com
NS_LDAP_AUTH= simple
NS_LDAP_SEARCH_SCOPE= sub
NS_LDAP_CACHETTL= 0
NS_LDAP_CREDENTIAL_LEVEL= proxy
NS_LDAP_SERVICE_SEARCH_DESC= passwd:ou=People,dc=cisco,dc=com
NS_LDAP_SERVICE_SEARCH_DESC= shadow:ou=People,dc=cisco,dc=com
/var/ldap/ldap_client_cred
NS_LDAP_BINDDN= uid=testbind,dc=cisco,dc=com
NS_LDAP_BINDPASSWD= {NS1}4a3788e834634411
6 Verify