|string>
*/
public function rules(): array
{
return [
'ldap_username_field' => 'not_in:sAMAccountName',
'ldap_auth_filter_query' => 'not_in:uid=samaccountname|required_if:ldap_enabled,1',
'ldap_filter' => 'nullable|regex:"^[^(]"|required_if:ldap_enabled,1',
];
}
public function messages() : array
{
return [
'ldap_username_field.not_in' => 'sAMAccountName
(mixed case) will likely not work. You should use samaccountname
(lowercase) instead. ',
'ldap_auth_filter_query.not_in' => 'uid=samaccountname
is probably not a valid auth filter. You probably want uid=
',
'ldap_filter.regex' => 'This value should probably not be wrapped in parentheses.',
];
}
}