Linux technical support - [email protected]


ldapsearch

# ldap search filter example
ldapsearch -LLL  -H ldaps://ldap1.alexlinux.lan  -x -b 'dc=alexlinux,dc=lan' -s sub "(&(uid=agorbachev) (|(host=g-bs01.alexlinux.lan)(host=\*))  )"

# ldapsearch example
ldapsearch -LLL  -H ldaps://ldap1.alexlinux.com  -x  -E pr=1000/noprompt -b 'ou=users,ou=admins,ou=boston,dc=alexlinux,dc=com' uid

ldapsearch -W -x -D "CN=alex,OU=contractor,OU=CORP users,DC=corp,DC=alexlinux,DC=com" -b "dc=corp,dc=alexlinux,dc=com" "(ou=it)" -h 10.10.4.9

# SEARCH IN AD IN OU
ldapsearch -x -h ldap1.alexlinux.com -D "ldap" -W -b "dc=alexlinux,dc=com" -s sub "(cn=*)" cn mail sn

# SEARCH IN AD IN OU IF CERT SELF SIGNED
LDAPTLS_REQCERT=never ldapsearch -x -h ldap1.alexlinux.com -D "ldap" -W -b "dc=alexlinux,dc=com" -s sub "(cn=*)" cn mail sn

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>