From 23e0fdbedf3ddbbb8515d0feccf092643cd8cba9 Mon Sep 17 00:00:00 2001 From: Robert Walter Date: Mon, 12 Dec 2022 12:32:32 +0100 Subject: [PATCH] Fixing Validation Problem at LDAP Form --- powerdnsadmin/templates/admin_setting_authentication.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/powerdnsadmin/templates/admin_setting_authentication.html b/powerdnsadmin/templates/admin_setting_authentication.html index ba82c2e..5d0fd10 100644 --- a/powerdnsadmin/templates/admin_setting_authentication.html +++ b/powerdnsadmin/templates/admin_setting_authentication.html @@ -735,15 +735,17 @@ $('#ldap_admin_username').prop('required', true); $('#ldap_admin_password').prop('required', true); $('#ldap_domain').prop('required', false); + $('#ldap_filter_group').prop('required', true); + $('#ldap_filter_groupname').prop('required', true); } else { $('#ldap_admin_username').prop('required', false); $('#ldap_admin_password').prop('required', false); $('#ldap_domain').prop('required', true); + $('#ldap_filter_group').prop('required', false); + $('#ldap_filter_groupname').prop('required', false); } $('#ldap_filter_basic').prop('required', true); - $('#ldap_filter_group').prop('required', true); $('#ldap_filter_username').prop('required', true); - $('#ldap_filter_groupname').prop('required', true); if ($('#ldap_sg_on').is(":checked")) { $('#ldap_admin_group').prop('required', true);