Searching LDAP from the command line | skybert.net

Searching LDAP from the command line


This is one example for searching OpenLDAP using the command line:

$ ldapsearch \
    -h myldaphost \
    -p 389 \
    -D "cn=admin,dc=skybert,dc=net" \
    -w bar \
    -x \
    -b "ou=Users,ou=mysite,dc=skybert,dc=net" \
    "cn=myuser*"

gmail torstein.k.johansen @ gmail ~ twitter @torsteinkrause ~