Fix: Setting to null after getting the error messages
This commit is contained in:
parent
3c9f63ae6b
commit
45ca83411f
@ -213,13 +213,14 @@ class ldap extends DS {
|
|||||||
debug_log('Leaving with FALSE, bind FAILed',16,__FILE__,__LINE__,__METHOD__);
|
debug_log('Leaving with FALSE, bind FAILed',16,__FILE__,__LINE__,__METHOD__);
|
||||||
|
|
||||||
$this->noconnect = true;
|
$this->noconnect = true;
|
||||||
$CACHE[$this->index][$method] = null;
|
|
||||||
|
|
||||||
system_message(array(
|
system_message(array(
|
||||||
'title'=>sprintf('%s %s',_('Unable to connect to LDAP server'),$this->getName()),
|
'title'=>sprintf('%s %s',_('Unable to connect to LDAP server'),$this->getName()),
|
||||||
'body'=>sprintf('<b>%s</b>: %s (%s) for <b>%s</b>',_('Error'),$this->getErrorMessage($method),$this->getErrorNum($method),$method),
|
'body'=>sprintf('<b>%s</b>: %s (%s) for <b>%s</b>',_('Error'),$this->getErrorMessage($method),$this->getErrorNum($method),$method),
|
||||||
'type'=>'error'));
|
'type'=>'error'));
|
||||||
|
|
||||||
|
$CACHE[$this->index][$method] = null;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$this->noconnect = false;
|
$this->noconnect = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user