Verify the server
Communication between the Security Directory Server client and the LDAP server can be tested using the ldapsearch command. This command also reveals the version of the LDAP server software.
This command can be run from any machine with Security Directory Server client installed. The structure of the ldapsearch command different when we use SSL.
- Without SSL
- The following sample command is appropriate when the LDAP server is configured for non-SSL communication:
ldapsearch -h ldapserver-hostname -p 389 -D "ldapadminDN" -w ldapadmin-password -b "" -s base objectclass=*
If this command fails on a Windows operating system, check the ldapsearch command is the one provided by Security Directory Server client.
The output of this command varies depending on which supported LDAP server we are using.
- With SSL
- The following sample command is appropriate when the LDAP server is configured for SSL communication:
ldapsearch -h ldapserver-hostname -p 636 -D "ldapadminDN" -w ldapadmin-password -Z -K client-keyfile -P key-password -b "" -s base objectclass=*
The output of this command varies depending on which supported LDAP server we are using.
Parent topic: Security Directory Server