ldapsearch command – Test ldap connection
ldapsearch opens a connection to an LDAP server, binds, and performs a search using specified parameters.
Options
ldapsearch -x -D “cn=admin,dc=linuxadmin,dc =com” -w test
-x
Use simple authentication instead of SASL.
-D binddn
Use the Distinguished Name binddn to bind to the LDAP directory.
-w passwd
Use passwd as the password for simple authentication.
Category: Linux Administration
