From 36b694fc410b1519e7f8d0f572c84a079147a318 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 14 May 2021 11:47:38 +0200 Subject: [PATCH] website/docs: add example ldapsearch command Signed-off-by: Jens Langhammer --- website/docs/outposts/ldap.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/website/docs/outposts/ldap.md b/website/docs/outposts/ldap.md index e9b0b6012..7ce58d598 100644 --- a/website/docs/outposts/ldap.md +++ b/website/docs/outposts/ldap.md @@ -16,7 +16,18 @@ You can configure under which base DN the information should be available. For t Users are available under `ou=users,` and groups under `ou=groups,`. -You can bind using the DN `cn=,ou=users,`. +You can bind using the DN `cn=,ou=users,`, or using the following ldapsearch command for example: + +``` +ldapsearch \ + -x \ # Only simple binds are currently supported + -h *ip* \ + -p 3389 \ + -D 'cn=*user*,ou=users,DC=ldap,DC=goauthentik,DC=io' \ # Bind user and password + -w '*password*' \ + -b 'ou=users,DC=ldap,DC=goauthentik,DC=io' \ # The search base + '(objectClass=user)' +``` The following fields are currently sent for users: