ldapsearch command – Test ldap connection

| April 30, 2011

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.

Tags: , ,

Category: Linux Administration

Comments are closed.