From 3705b914399054e29d4964371ca638524a427bed Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 9 Oct 2024 20:51:34 +0100 Subject: [PATCH] Added more validation Signed-off-by: snipe --- app/Http/Requests/StoreLdapSettings.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Requests/StoreLdapSettings.php b/app/Http/Requests/StoreLdapSettings.php index c707fc3bd4..d1fe3bb8fc 100644 --- a/app/Http/Requests/StoreLdapSettings.php +++ b/app/Http/Requests/StoreLdapSettings.php @@ -27,6 +27,11 @@ class StoreLdapSettings extends FormRequest 'ldap_username_field' => 'not_in:sAMAccountName|required_if:ldap_enabled,1', 'ldap_auth_filter_query' => 'not_in:uid=samaccountname|required_if:ldap_enabled,1', 'ldap_filter' => 'nullable|regex:"^[^(]"|required_if:ldap_enabled,1', + 'ldap_server' => 'nullable|required_if:ldap_enabled,1', + 'ldap_uname' => 'nullable|required_if:ldap_enabled,1', + 'ldap_pword' => 'nullable|required_if:ldap_enabled,1', + 'ldap_basedn' => 'nullable|required_if:ldap_enabled,1', + 'ldap_fname_field' => 'nullable|required_if:ldap_enabled,1', ]; }