summaryrefslogtreecommitdiffstats
path: root/templates/admin/auth/source/ldap.tmpl
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-05-05 17:30:47 +0300
committerGitHub <noreply@github.com>2018-05-05 17:30:47 +0300
commit501fb228e6c2b4d75593fae835d59cc533a6f36b (patch)
tree748b452140e041757ee9f1efb1e53de3ed59812e /templates/admin/auth/source/ldap.tmpl
parent7467ff3d94537880d8d6ee3925d682b6de15ae77 (diff)
downloadgitea-501fb228e6c2b4d75593fae835d59cc533a6f36b.tar.gz
gitea-501fb228e6c2b4d75593fae835d59cc533a6f36b.zip
Add option to use paged LDAP search when synchronizing users (#3895)
Diffstat (limited to 'templates/admin/auth/source/ldap.tmpl')
-rw-r--r--templates/admin/auth/source/ldap.tmpl10
1 files changed, 10 insertions, 0 deletions
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>