summaryrefslogtreecommitdiffstats
path: root/templates/admin/auth
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2015-02-08 01:49:51 +0200
committerLauris BH <lauris@nix.lv>2015-02-08 01:49:51 +0200
commit00653e52ee078ae76872f722f056805fb75d98af (patch)
tree0d41957f773ff9f2e0da9904627ee0e6961f7abb /templates/admin/auth
parentba77a3b0b4bfcc418301c5069d9dd57d05ea23c3 (diff)
downloadgitea-00653e52ee078ae76872f722f056805fb75d98af.tar.gz
gitea-00653e52ee078ae76872f722f056805fb75d98af.zip
Get username, name, surname and e-mail from LDAP server
Diffstat (limited to 'templates/admin/auth')
-rw-r--r--templates/admin/auth/edit.tmpl16
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index 77d28f6269..e1bbd23d03 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -48,8 +48,20 @@
<input class="ipt ipt-large ipt-radius {{if .Err_BaseDN}}ipt-error{{end}}" id="base_dn" name="base_dn" value="{{.Source.LDAP.BaseDN}}" />
</div>
<div class="field">
- <label class="req" for="attributes">{{.i18n.Tr "admin.auths.attributes"}}</label>
- <input class="ipt ipt-large ipt-radius {{if .Err_Attributes}}ipt-error{{end}}" id="attributes" name="attributes" value="{{.Source.LDAP.Attributes}}" />
+ <label class="req" for="attribute_username">{{.i18n.Tr "admin.auths.attribute_username"}}</label>
+ <input class="ipt ipt-large ipt-radius {{if .Err_Attributes}}ipt-error{{end}}" id="attribute_username" name="attribute_username" value="{{.Source.LDAP.AttributeUsername}}" />
+ </div>
+ <div class="field">
+ <label class="req" for="attribute_name">{{.i18n.Tr "admin.auths.attribute_name"}}</label>
+ <input class="ipt ipt-large ipt-radius {{if .Err_Attributes}}ipt-error{{end}}" id="attribute_name" name="attribute_name" value="{{.Source.LDAP.AttributeName}}" />
+ </div>
+ <div class="field">
+ <label class="req" for="attribute_surname">{{.i18n.Tr "admin.auths.attribute_surname"}}</label>
+ <input class="ipt ipt-large ipt-radius {{if .Err_Attributes}}ipt-error{{end}}" id="attribute_surname" name="attribute_surname" value="{{.Source.LDAP.AttributeSurname}}" />
+ </div>
+ <div class="field">
+ <label class="req" for="attribute_mail">{{.i18n.Tr "admin.auths.attribute_mail"}}</label>
+ <input class="ipt ipt-large ipt-radius {{if .Err_Attributes}}ipt-error{{end}}" id="attribute_mail" name="attribute_mail" value="{{.Source.LDAP.AttributeMail}}" />
</div>
<div class="field">
<label class="req" for="filter">{{.i18n.Tr "admin.auths.filter"}}</label>