From de109aaeafde6a375441970bcb40136cdb7dff45 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 18 Jul 2015 10:17:18 -0400 Subject: Add new config option to disable automatic creation of LDAP accounts --- app/Auth/Ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Auth') diff --git a/app/Auth/Ldap.php b/app/Auth/Ldap.php index 3ee6ec9b..c1459b4e 100644 --- a/app/Auth/Ldap.php +++ b/app/Auth/Ldap.php @@ -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 { -- cgit v1.2.3