summaryrefslogtreecommitdiffstats
path: root/routers/admin
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2016-02-16 12:33:16 +0100
committerAdam Strzelecki <ono@java.pl>2016-02-20 14:12:32 +0100
commit834d92a47ba782b0f6cf609799864c4c73d44c5e (patch)
tree08ea949517fdbb17f2c550a53fb952def73a5c65 /routers/admin
parente2f95c284570271267a6239faa944c381960a3d9 (diff)
downloadgitea-834d92a47ba782b0f6cf609799864c4c73d44c5e.tar.gz
gitea-834d92a47ba782b0f6cf609799864c4c73d44c5e.zip
LDAP: Fetch attributes in Bind DN context option
This is feature is workaround for #2628 (JumpCloud) and some other services that allow LDAP search only under BindDN user account, but not allow any LDAP search query in logged user DN context. Such approach is an alternative to minimal permissions security pattern for BindDN user.
Diffstat (limited to 'routers/admin')
-rw-r--r--routers/admin/auths.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/admin/auths.go b/routers/admin/auths.go
index 659b8fcf67..c519d5a7e0 100644
--- a/routers/admin/auths.go
+++ b/routers/admin/auths.go
@@ -81,6 +81,7 @@ func parseLDAPConfig(form auth.AuthenticationForm) *models.LDAPConfig {
AttributeName: form.AttributeName,
AttributeSurname: form.AttributeSurname,
AttributeMail: form.AttributeMail,
+ AttributesInBind: form.AttributesInBind,
Filter: form.Filter,
AdminFilter: form.AdminFilter,
Enabled: true,