Add new config option to disable automatic creation of LDAP accounts
This commit is contained in:
@@ -46,7 +46,7 @@ class Ldap extends Base
|
||||
else {
|
||||
|
||||
// We create automatically a new user
|
||||
if ($this->createUser($username, $result['name'], $result['email'])) {
|
||||
if (LDAP_ACCOUNT_CREATION && $this->createUser($username, $result['name'], $result['email'])) {
|
||||
$user = $this->user->getByUsername($username);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user