diff options
author | aboron <aboron@users.noreply.github.com> | 2017-05-29 22:33:50 -0400 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2017-05-29 22:33:50 -0400 |
commit | dbb7e5464b6a9cad430b2f36b52e7674211f51cf (patch) | |
tree | 8f201849432a65d3a58e04ef2c92b7eedfbf7a24 /routers | |
parent | 11ad64f6cbdc489a49247604fe697dffaa090ac2 (diff) |
ldap: add check for group membership (#4398)
* Add standard LDAP group membership checking.
* Fix formatting, typo, grammer, and syntax errors
* Debugging done.
Gave up on locale file edits.
Diffstat (limited to 'routers')
-rw-r--r-- | routers/admin/auths.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/admin/auths.go b/routers/admin/auths.go index 532adb4f..e42bb5e2 100644 --- a/routers/admin/auths.go +++ b/routers/admin/auths.go @@ -93,6 +93,11 @@ func parseLDAPConfig(f form.Authentication) *models.LDAPConfig { AttributeMail: f.AttributeMail, AttributesInBind: f.AttributesInBind, Filter: f.Filter, + GroupsEnabled: f.GroupsEnabled, + GroupDN: f.GroupDN, + GroupFilter: f.GroupFilter, + GroupMemberUid: f.GroupMemberUid, + UserUID: f.UserUID, AdminFilter: f.AdminFilter, Enabled: true, }, |