summaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r--web_src/js/index.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 43c4cdc0fe..bae1a51731 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1754,9 +1754,9 @@ function initAdmin() {
// New authentication
if ($('.admin.new.authentication').length > 0) {
$('#auth_type').change(function () {
- $('.ldap, .dldap, .smtp, .pam, .oauth2, .has-tls .search-page-size').hide();
+ $('.ldap, .dldap, .smtp, .pam, .oauth2, .has-tls .search-page-size .sspi').hide();
- $('.ldap input[required], .binddnrequired input[required], .dldap input[required], .smtp input[required], .pam input[required], .oauth2 input[required], .has-tls input[required]').removeAttr('required');
+ $('.ldap input[required], .binddnrequired input[required], .dldap input[required], .smtp input[required], .pam input[required], .oauth2 input[required], .has-tls input[required], .sspi input[required]').removeAttr('required');
$('.binddnrequired').removeClass('required');
const authType = $(this).val();
@@ -1784,6 +1784,10 @@ function initAdmin() {
$('.oauth2 div.required:not(.oauth2_use_custom_url,.oauth2_use_custom_url_field,.open_id_connect_auto_discovery_url) input').attr('required', 'required');
onOAuth2Change();
break;
+ case '7': // SSPI
+ $('.sspi').show();
+ $('.sspi div.required input').attr('required', 'required');
+ break;
}
if (authType === '2' || authType === '5') {
onSecurityProtocolChange();