User Tools

Site Tools


sysadmin:ldap

This is an old revision of the document!


LDAP search Command

aka. Sanity check that ldap is working for a user

ldapsearch -x -H "ldap://ip_addr:port" -D "ldapuser@foo.bar" -W -b "dc=domain,dc=org" "(sAMAccountName=ldap_user)"

Example

ldapsearch -x -H "ldap://192.168.1.2:3268" -D "ldaper@mikelivolsi.com" -W -b "dc=mikelivolsi,dc=com" "(sAMAccountName=foobar_user)"
sysadmin/ldap.1770242288.txt.gz · Last modified: by mlivolsi