mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
commented out patch to reconnect to LDAP server, if connection is lost
This commit is contained in:
parent
87dbacebd9
commit
c0e1f47b48
@ -273,6 +273,7 @@ class Import
|
||||
$start = ['', 500, &$cookie]; // cookie must be a reference!
|
||||
do
|
||||
{
|
||||
$contact = $reconnected = null;
|
||||
foreach ($this->contacts->search('', false, '', 'account_lid', '', '', 'AND', $start, $filter) as $contact)
|
||||
{
|
||||
$new = null;
|
||||
@ -532,8 +533,15 @@ class Import
|
||||
// remember the users we imported, to be able to delete the ones we dont
|
||||
unset($sql_users[$account_id]);
|
||||
}
|
||||
/* check if connection was somehow lost / timed out and reconnect
|
||||
if ($initial_import && !isset($contact) && ldap_errno($this->contacts->ds) === -1)
|
||||
{
|
||||
$this->contacts->ds = $this->accounts->ldap_connection(true);
|
||||
$reconnected = true;
|
||||
$this->logger("Reconnected to LDAP server", 'info');
|
||||
}*/
|
||||
}
|
||||
while ($start[2] !== '');
|
||||
while ($reconnected || $start[2] !== '');
|
||||
|
||||
if ($set_members)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user