diff options
Diffstat (limited to 'templates/admin/auth/source')
-rw-r--r-- | templates/admin/auth/source/ldap.tmpl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/admin/auth/source/ldap.tmpl b/templates/admin/auth/source/ldap.tmpl index f5806c829c..651877b1f7 100644 --- a/templates/admin/auth/source/ldap.tmpl +++ b/templates/admin/auth/source/ldap.tmpl @@ -71,6 +71,31 @@ <label for="attribute_ssh_public_key">{{.i18n.Tr "admin.auths.attribute_ssh_public_key"}}</label> <input id="attribute_ssh_public_key" name="attribute_ssh_public_key" value="{{.attribute_ssh_public_key}}" placeholder="e.g. SshPublicKey"> </div> + <div class="inline field"> + <div class="ui checkbox"> + <label for="groups_enabled"><strong>{{.i18n.Tr "admin.auths.verify_group_membership"}}</strong></label> + <input id="groups_enabled" name="groups_enabled" type="checkbox" {{if .groups_enabled}}checked{{end}}> + </div> + </div> + <div id="groups_enabled_change"> + <div class="field"> + <label for="group_dn">{{.i18n.Tr "admin.auths.group_search_base"}}</label> + <input id="group_dn" name="group_dn" value="{{.group_dn}}" placeholder="e.g. ou=group,dc=mydomain,dc=com"> + </div> + <div class="field"> + <label for="group_filter">{{.i18n.Tr "admin.auths.valid_groups_filter"}}</label> + <input id="group_filter" name="group_filter" value="{{.group_filter}}" placeholder="e.g. (|(cn=gitea_users)(cn=admins))"> + </div> + <div class="field"> + <label for="group_member_uid">{{.i18n.Tr "admin.auths.group_attribute_list_users"}}</label> + <input id="group_member_uid" name="group_member_uid" value="{{.group_member_uid}}" placeholder="e.g. memberUid"> + </div> + <div class="field"> + <label for="user_uid">{{.i18n.Tr "admin.auths.user_attribute_in_group"}}</label> + <input id="user_uid" name="user_uid" value="{{.user_uid}}" placeholder="e.g. uid"> + </div> + <br/> + </div> <div class="ldap inline field {{if not (eq .type 2)}}hide{{end}}"> <div class="ui checkbox"> <label for="use_paged_search"><strong>{{.i18n.Tr "admin.auths.use_paged_search"}}</strong></label> |