mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02: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!
|
$start = ['', 500, &$cookie]; // cookie must be a reference!
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
$contact = $reconnected = null;
|
||||||
foreach ($this->contacts->search('', false, '', 'account_lid', '', '', 'AND', $start, $filter) as $contact)
|
foreach ($this->contacts->search('', false, '', 'account_lid', '', '', 'AND', $start, $filter) as $contact)
|
||||||
{
|
{
|
||||||
$new = null;
|
$new = null;
|
||||||
@ -532,8 +533,15 @@ class Import
|
|||||||
// remember the users we imported, to be able to delete the ones we dont
|
// remember the users we imported, to be able to delete the ones we dont
|
||||||
unset($sql_users[$account_id]);
|
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)
|
if ($set_members)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user