Add new config option to disable automatic creation of LDAP accounts

This commit is contained in:
Frederic Guillot
2015-07-18 10:17:18 -04:00
parent 5369c74ec0
commit de109aaeaf
5 changed files with 25 additions and 2 deletions

View File

@@ -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 {