From 641f265e8832e25d86ca0ae16498a18866fe863c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 28 Jul 2016 15:28:53 +0200 Subject: [PATCH] fix PHP Fatal error: Class 'ldap' not found, when migrating accounts LDAP --> SQL --- setup/inc/class.setup_cmd_ldap.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup/inc/class.setup_cmd_ldap.inc.php b/setup/inc/class.setup_cmd_ldap.inc.php index 4accf89d90..3e5101a00a 100644 --- a/setup/inc/class.setup_cmd_ldap.inc.php +++ b/setup/inc/class.setup_cmd_ldap.inc.php @@ -546,8 +546,7 @@ class setup_cmd_ldap extends setup_cmd if (!isset($ldap_class)) { $ldap_class = false; - $ldap = new ldap(); - $ldap->ldapConnect(); + $ldap = Api\Ldap::factory(false); foreach(array( // todo: have these enumerated by emailadmin ... 'qmailUser' => 'EGroupware\\Api\\Mail\\Smtp\\Oldqmailuser', 'dbMailUser' => 'EGroupware\\Api\\Mail\\Smtp\\Dbmailuser',