diff options
author | Adam Strzelecki <ono@java.pl> | 2016-02-16 12:33:16 +0100 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2016-02-20 14:12:32 +0100 |
commit | 834d92a47ba782b0f6cf609799864c4c73d44c5e (patch) | |
tree | 08ea949517fdbb17f2c550a53fb952def73a5c65 /templates/admin | |
parent | e2f95c284570271267a6239faa944c381960a3d9 (diff) | |
download | gitea-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 'templates/admin')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 426d37e40a..9bda877980 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -79,6 +79,14 @@ <label for="attribute_mail">{{.i18n.Tr "admin.auths.attribute_mail"}}</label> <input id="attribute_mail" name="attribute_mail" value="{{$cfg.AttributeMail}}" placeholder="e.g. mail" required> </div> + {{if .Source.IsLDAP}} + <div class="inline field"> + <div class="ui checkbox"> + <label><strong>{{.i18n.Tr "admin.auths.attributes_in_bind"}}</strong></label> + <input name="attributes_in_bind" type="checkbox" {{if $cfg.AttributesInBind}}checked{{end}}> + </div> + </div> + {{end}} {{end}} <!-- SMTP --> |