Skip to content

Instantly share code, notes, and snippets.

@mattantonelli
Forked from JosiahSiegel/query_user.sql
Last active June 21, 2016 21:01
Show Gist options
  • Save mattantonelli/ceb24b3bf8e1742b4ae998e94c1f9c85 to your computer and use it in GitHub Desktop.
Save mattantonelli/ceb24b3bf8e1742b4ae998e94c1f9c85 to your computer and use it in GitHub Desktop.
#LDAP Query user by displayName
SELECT $displayName, $cn FROM ROOTDSE
WHERE $objectClass='user' AND $objectCategory='Person'
AND $displayName='John Sample';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment