diff options
author | Simon Rettberg | 2016-12-01 18:08:06 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-12-01 18:08:06 +0100 |
commit | c485b29eb853c5a4a7e5b021de39269b1c00d4e2 (patch) | |
tree | 2be43cabb747308de42ae460cf26850d55232b26 /modules-available/sysconfig/templates/ad-selfsearch.html | |
parent | [Taskmanager] Add support for compressed replies (diff) | |
download | slx-admin-c485b29eb853c5a4a7e5b021de39269b1c00d4e2.tar.gz slx-admin-c485b29eb853c5a4a7e5b021de39269b1c00d4e2.tar.xz slx-admin-c485b29eb853c5a4a7e5b021de39269b1c00d4e2.zip |
[sysconfig] AD/LDAP: Fix handling of user@domain.foo; fix SSL portscan; add homeattr scan info
Diffstat (limited to 'modules-available/sysconfig/templates/ad-selfsearch.html')
-rw-r--r-- | modules-available/sysconfig/templates/ad-selfsearch.html | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/modules-available/sysconfig/templates/ad-selfsearch.html b/modules-available/sysconfig/templates/ad-selfsearch.html index b60cc3af..39ef3e59 100644 --- a/modules-available/sysconfig/templates/ad-selfsearch.html +++ b/modules-available/sysconfig/templates/ad-selfsearch.html @@ -1,5 +1,10 @@ <p> + {{#tryHomeAttr}} + {{lang_determiningHomeDirectory}} + {{/tryHomeAttr}} + {{^tryHomeAttr}} {{lang_dnLookup}} + {{/tryHomeAttr}} </p> <p> {{binddn}} @ {{server}}<br> @@ -14,7 +19,11 @@ </div> </div> <i>{{lang_onProblemSearchBase}}</i> -<br><br> +<br> +<div class="alert alert-warning" id="nohome" style="display:none"> + {{lang_noHomeAttrFound}} +</div> +<br> <div class="pull-left"> <form role="form" method="post" action="?do=SysConfig&action=addmodule&step={{prev}}"> <input type="hidden" name="token" value="{{token}}"> @@ -87,9 +96,11 @@ tryHomeAttr = true; if (task.data.home && task.data.home.length) attrlist = task.data.home; {{/tryHomeAttr}} - if (typeof search !== 'string' || search.length === 0 || search.length + 2 >= fulldn.length - || (tryHomeAttr && $('#home').val().length === 0 && $('#homeattr').val().length === 0 && attrlist.length === 0)) { + if (typeof search !== 'string' || search.length === 0 || search.length + 2 >= fulldn.length) { + $('#nextbutton').html('{{lang_continueAnyway}}'); + } else if (tryHomeAttr && $('#home').val().length === 0 && $('#homeattr').val().length === 0 && attrlist.length === 0) { $('#nextbutton').html('{{lang_continueAnyway}}'); + $('#nohome').show(); } else if (attrlist.length > 1 && $('#homeattr').val().length === 0) { var sel = $('<select>').attr('onchange', 'slxSetHomeAttr(this)').addClass('form-control'); var best = 0; |