LDAP

From ZENworks Ninja
Jump to: navigation, search

Search Filters

Search for users with a login ID of jjennings

(&(objectClass=inetOrgPerson)(cn=jjennings))


Example Search

Search for Groups in edirectory

ldapsearch -h eDirectory_server -x -b o=MyOrg (&(objectclass=Group))


LDAP and SSL

This is probably one of my FAV commands. It allows me to get the LDAP certificate that was used for LDAP connections. With this I can force trust the LDAP connection, even if I don't have the Signing ROOT cert.

echo -n | openssl s_client -connect 192.168.1.225:636 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ldapserver.pem