Skip to content

Instantly share code, notes, and snippets.

@marcelaraujo
Created March 20, 2020 10:09
Show Gist options
  • Save marcelaraujo/1e4dd36056ba97d767ac79780095297e to your computer and use it in GitHub Desktop.
Save marcelaraujo/1e4dd36056ba97d767ac79780095297e to your computer and use it in GitHub Desktop.
Curl as 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