Skip to content

Instantly share code, notes, and snippets.

@tuxfight3r
Created December 4, 2019 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxfight3r/922d6d9c7dba2935d7663b2e49a214e8 to your computer and use it in GitHub Desktop.
Save tuxfight3r/922d6d9c7dba2935d7663b2e49a214e8 to your computer and use it in GitHub Desktop.
curl as an ldap client

Use curl as an LDAP client

curl "ldap://localhost:1389/dc=example,dc=com?homephone?sub?cn=*amar" \

     -u "cn=directory manager"
Enter host password for user 'cn=directory manager':
DN: uid=mathieu,ou=People,dc=example,dc=com
    homephone: +1 225 216 5900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment