fix PHP Fatal error: Class 'ldap' not found, when migrating accounts LDAP --> SQL

This commit is contained in:
Ralf Becker 2016-07-28 15:28:53 +02:00
parent f6f3b89f8b
commit 3e1f7613de

View File

@ -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',