diff options
author | Lauris BH <lauris@nix.lv> | 2018-05-05 17:30:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-05 17:30:47 +0300 |
commit | 501fb228e6c2b4d75593fae835d59cc533a6f36b (patch) | |
tree | 748b452140e041757ee9f1efb1e53de3ed59812e /templates | |
parent | 7467ff3d94537880d8d6ee3925d682b6de15ae77 (diff) | |
download | gitea-501fb228e6c2b4d75593fae835d59cc533a6f36b.tar.gz gitea-501fb228e6c2b4d75593fae835d59cc533a6f36b.zip |
Add option to use paged LDAP search when synchronizing users (#3895)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 10 | ||||
-rw-r--r-- | templates/admin/auth/source/ldap.tmpl | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index e3048b2183..e4ec3a9f5b 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -93,6 +93,16 @@ {{if .Source.IsLDAP}} <div class="inline field"> <div class="ui checkbox"> + <label for="use_paged_search"><strong>{{.i18n.Tr "admin.auths.use_paged_search"}}</strong></label> + <input id="use_paged_search" name="use_paged_search" type="checkbox" {{if $cfg.UsePagedSearch}}checked{{end}}> + </div> + </div> + <div class="field required search-page-size{{if not $cfg.UsePagedSearch}} hide{{end}}"> + <label for="search_page_size">{{.i18n.Tr "admin.auths.search_page_size"}}</label> + <input id="search_page_size" name="search_page_size" value="{{if $cfg.UsePagedSearch}}{{$cfg.SearchPageSize}}{{end}}"> + </div> + <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> diff --git a/templates/admin/auth/source/ldap.tmpl b/templates/admin/auth/source/ldap.tmpl index 2131950212..cf906f703c 100644 --- a/templates/admin/auth/source/ldap.tmpl +++ b/templates/admin/auth/source/ldap.tmpl @@ -62,4 +62,14 @@ <label for="attribute_mail">{{.i18n.Tr "admin.auths.attribute_mail"}}</label> <input id="attribute_mail" name="attribute_mail" value="{{.attribute_mail}}" placeholder="e.g. mail"> </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> + <input id="use_paged_search" name="use_paged_search" class="use-paged-search" type="checkbox" {{if .use_paged_search}}checked{{end}}> + </div> + </div> + <div class="ldap field search-page-size required {{if or (not (eq .type 2)) (not .use_paged_search)}}hide{{end}}"> + <label for="search_page_size">{{.i18n.Tr "admin.auths.search_page_size"}}</label> + <input id="search_page_size" name="search_page_size" value="{{.search_page_size}}"> + </div> </div> |