diff options
Diffstat (limited to 'templates/admin/auth/edit.tmpl')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 6da77f1282..5569ce19e5 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -30,7 +30,7 @@ <input class="ipt ipt-large ipt-radius {{if .Err_AuthName}}ipt-error{{end}}" id="name" name="name" value="{{.Source.Name}}" required /> </div> - {{if eq $type 2}} + {{if eq $type 2 3}} <div class="field"> <label class="req" for="host">{{.i18n.Tr "admin.auths.host"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_Host}}ipt-error{{end}}" id="host" name="host" value="{{.Source.LDAP.Host}}" required /> @@ -43,6 +43,7 @@ <label for="use_ssl">{{.i18n.Tr "admin.auths.enable_tls"}}</label> <input name="use_ssl" type="checkbox" {{if .Source.LDAP.UseSSL}}checked{{end}}> </div> + {{if eq $type 2}} <div class="field"> <label for="bind_dn">{{.i18n.Tr "admin.auths.bind_dn"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_BindDN}}ipt-error{{end}}" id="bind_dn" name="bind_dn" value="{{.Source.LDAP.BindDN}}" /> @@ -55,6 +56,13 @@ <label class="req" for="user_base">{{.i18n.Tr "admin.auths.user_base"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_UserBase}}ipt-error{{end}}" id="user_base" name="user_base" value="{{.Source.LDAP.UserBase}}" /> </div> + {{end}} + {{if eq $type 3}} + <div class="field"> + <label class="req" for="user_dn">{{.i18n.Tr "admin.auths.user_dn"}}</label> + <input class="ipt ipt-large ipt-radius {{if .Err_UserDN}}ipt-error{{end}}" id="user_dn" name="user_dn" value="{{.Source.LDAP.UserDN}}" /> + </div> + {{end}} <div class="field"> <label class="req" for="filter">{{.i18n.Tr "admin.auths.filter"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_Filter}}ipt-error{{end}}" id="filter" name="filter" value="{{.Source.LDAP.Filter}}" /> @@ -76,7 +84,8 @@ <input class="ipt ipt-large ipt-radius {{if .Err_Attributes}}ipt-error{{end}}" id="attribute_mail" name="attribute_mail" value="{{.Source.LDAP.AttributeMail}}" /> </div> - {{else if eq $type 3}} + + {{else if eq $type 4}} <div class="field"> <label class="req">{{.i18n.Tr "admin.auths.smtp_auth"}}</label> <select name="smtp_auth"> @@ -96,7 +105,7 @@ <input class="ipt ipt-large ipt-radius {{if .Err_SmtpPort}}ipt-error{{end}}" id="smtp_port" name="smtp_port" value="{{.Source.SMTP.Port}}" /> </div> - {{else if eq $type 4}} + {{else if eq $type 5}} <div class="field"> <label class="req" for="pam_service_name">{{.i18n.Tr "admin.auths.pam_service_name"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_PAMServiceName}}ipt-error{{end}}" id="pam_service_name" name="pam_service_name" value="{{.Source.PAM.ServiceName}}" /> @@ -104,7 +113,7 @@ {{end}} <div class="field"> - {{if eq $type 3}} + {{if eq $type 4}} <label></label> <input name="tls" type="checkbox" {{if .Source.SMTP.TLS}}checked{{end}}> <strong>{{.i18n.Tr "admin.auths.enable_tls"}}</strong> |