Skip to content

Instantly share code, notes, and snippets.

@JimPanic
Created January 22, 2016 12:14
Show Gist options
  • Save JimPanic/e9bc60f738afca7b9116 to your computer and use it in GitHub Desktop.
Save JimPanic/e9bc60f738afca7b9116 to your computer and use it in GitHub Desktop.
first valid search reply
~/p/d/a/ldap_server master $ ldapsearch -H 'ldap://localhost:4040/' -D 'a' -b 'dc=foo,dc=example,dc=com' '(foo=bar)' a
ldap_bind: Success (0)
matched DN: a
additional info: Authenticated!
# extended LDIF
#
# LDAPv3
# base <dc=foo,dc=example,dc=com> with scope subtree
# filter: (foo=bar)
# requesting: a
#
# a, people, foo.example.com
dn: uid=a,ou=people,dc=foo,dc=example,dc=com
a: test
# search result
search: 2
result: 0 Success
matchedDN: dc=foo,dc=example,dc=com
text: this is only a test!
# numResponses: 2
# numEntries: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment