From 1df04e585f3207a541f8ea852b75222e3a724d1d Mon Sep 17 00:00:00 2001 From: Nicolas Gourdon Date: Sat, 27 Apr 2019 20:53:46 +0200 Subject: [PATCH] Set user search base field optional in DLDAP edit page --- docs/content/doc/features/authentication.en-us.md | 4 ++++ modules/auth/ldap/README.md | 4 ++++ templates/admin/auth/edit.tmpl | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/content/doc/features/authentication.en-us.md b/docs/content/doc/features/authentication.en-us.md index 42424b50e4b4..afa92196763c 100644 --- a/docs/content/doc/features/authentication.en-us.md +++ b/docs/content/doc/features/authentication.en-us.md @@ -115,6 +115,10 @@ Both the LDAP via BindDN and the simple auth LDAP share the following fields: - Example: `cn=%s,ou=Users,dc=mydomain,dc=com` - Example: `uid=%s,ou=Users,dc=mydomain,dc=com` +- User Search Base (optional) + - The LDAP base at which user accounts will be searched for. + - Example: `ou=Users,dc=mydomain,dc=com` + - User Filter **(required)** - An LDAP filter declaring when a user should be allowed to log in. The `%s` matching parameter will be substituted with login name given on sign-in diff --git a/modules/auth/ldap/README.md b/modules/auth/ldap/README.md index 530abd173529..4f7961da6b0d 100644 --- a/modules/auth/ldap/README.md +++ b/modules/auth/ldap/README.md @@ -94,6 +94,10 @@ share the following fields: * Example: cn=%s,ou=Users,dc=mydomain,dc=com * Example: uid=%s,ou=Users,dc=mydomain,dc=com +* User Search Base (optional) + * The LDAP base at which user accounts will be searched for. + * Example: ou=Users,dc=mydomain,dc=com + * User Filter **(required)** * An LDAP filter declaring when a user should be allowed to log in. The `%s` matching parameter will be substituted with the user's username. diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 8807657c33c2..6a176a43a84e 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -58,7 +58,7 @@ {{end}}
- +
{{if .Source.IsDLDAP}}