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 bfd3262c7b
commit 641f265e88

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