Skip to content

Commit

Permalink
Create LDAP.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lwindolf authored Jan 16, 2025
1 parent 49db0a5 commit 139185c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Cheat Sheets/DevOps Services/LDAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## CLI

You can use `curl` for LDAP connections!

curl -v -u "<service account>:<password>" ldaps://server:636 -d "(objectClass=*)"

Or use `ldapsearch`

ldapsearch -H ldaps://<host>:636 -D "<bind DN>" -w <password> -b "<base DN>" "(sAMAccountName=myuser)" -x

Connect with special CA cert

env LDAPTLS_CACERT=myca.crt ldapsearch [...]

To debug connection or query errors set a trace level with `-d`

ldapsearch -d 5 [...]

0 comments on commit 139185c

Please sign in to comment.