Ldapsearch: Difference between revisions
From DWIKI
mNo edit summary |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= | =Links= | ||
==ldapsearch using starttls== | *[https://devconnected.com/how-to-search-ldap-using-ldapsearch-examples/ ldapsearch examples] | ||
=Tools and software= | |||
==ldapsearch== | |||
===ldapsearch using starttls=== | |||
ldapsearch -x -ZZ -h ldap.example.com | ldapsearch -x -ZZ -h ldap.example.com | ||
==ldapsearch example== | ===ldapsearch example=== | ||
ldapsearch -x -XX -h ldap.example.com -b "dc=example,dc=com" -D "CN=Admin,dc=Users,dc=example,dc=com" -W | ldapsearch -x -XX -h ldap.example.com -b "dc=example,dc=com" -D "CN=Admin,dc=Users,dc=example,dc=com" -W | ||
===look up person=== | |||
ldapsearch -x -XX -h ldap.example.com -b "dc=example,dc=com" -D "CN=Admin,dc=Users,dc=example,dc=com" "(&(objectclass=person)(uid=harry))" -W | |||
=HOWTO= | |||
==check server certificate starttls== | ==check server certificate starttls== | ||
openssl s_client -connect ldap.example.com:389 -starttls ldap | openssl s_client -connect ldap.example.com:389 -starttls ldap | ||
or | |||
gnutls-cli --starttls-proto=ldap --print-cert -p 389 ldap.example.com |
Latest revision as of 09:01, 24 May 2024
Links
Tools and software
ldapsearch
ldapsearch using starttls
ldapsearch -x -ZZ -h ldap.example.com
ldapsearch example
ldapsearch -x -XX -h ldap.example.com -b "dc=example,dc=com" -D "CN=Admin,dc=Users,dc=example,dc=com" -W
look up person
ldapsearch -x -XX -h ldap.example.com -b "dc=example,dc=com" -D "CN=Admin,dc=Users,dc=example,dc=com" "(&(objectclass=person)(uid=harry))" -W
HOWTO
check server certificate starttls
openssl s_client -connect ldap.example.com:389 -starttls ldap
or
gnutls-cli --starttls-proto=ldap --print-cert -p 389 ldap.example.com