2021-03-01 09:43:17 +01:00
|
|
|
diff --git a/protected/humhub/modules/ldap/models/LdapSettings.php b/protected/humhub/modules/ldap/models/LdapSettings.php
|
|
|
|
index e6402e8b3..3b653d590 100644
|
|
|
|
--- a/protected/humhub/modules/ldap/models/LdapSettings.php
|
|
|
|
+++ b/protected/humhub/modules/ldap/models/LdapSettings.php
|
2022-08-29 23:36:24 +02:00
|
|
|
@@ -125,7 +125,7 @@ class LdapSettings extends Model
|
2021-03-01 09:43:17 +01:00
|
|
|
return [
|
|
|
|
[['enabled', 'refreshUsers', 'usernameAttribute', 'emailAttribute', 'username', 'passwordField', 'hostname', 'port', 'idAttribute'], 'string', 'max' => 255],
|
2022-08-29 23:36:24 +02:00
|
|
|
[['baseDn', 'loginFilter', 'userFilter', 'ignoredDNs'], 'string'],
|
2021-03-01 09:43:17 +01:00
|
|
|
- [['usernameAttribute', 'username', 'passwordField', 'hostname', 'port', 'baseDn', 'loginFilter', 'userFilter', 'idAttribute'], 'required'],
|
|
|
|
+ [['usernameAttribute', 'hostname', 'port', 'baseDn', 'loginFilter', 'userFilter', 'idAttribute'], 'required'],
|
|
|
|
['encryption', 'in', 'range' => ['', 'ssl', 'tls']],
|
|
|
|
];
|
|
|
|
}
|