diff options
author | Unknwon <u@gogs.io> | 2016-02-20 14:44:21 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-20 14:44:21 -0500 |
commit | 7e0baf41369b346180e7e14164dea936f8db98ba (patch) | |
tree | 42a25b5c622ec559798801ba657c8a3206ab0fda /templates/admin | |
parent | a703f7d7b42ec1d5190a84835379aba2f2d3250f (diff) | |
parent | a9981d80991be961399861c664d2217549d0560c (diff) | |
download | gitea-7e0baf41369b346180e7e14164dea936f8db98ba.tar.gz gitea-7e0baf41369b346180e7e14164dea936f8db98ba.zip |
Merge pull request #2634 from nanoant/patch/ldap-attributes-in-bind
LDAP: Fetch attributes in Bind DN context
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 --> |