diff --git a/lib/ds_ldap.php b/lib/ds_ldap.php index 9f8103e..527c4c7 100644 --- a/lib/ds_ldap.php +++ b/lib/ds_ldap.php @@ -213,13 +213,14 @@ class ldap extends DS { debug_log('Leaving with FALSE, bind FAILed',16,__FILE__,__LINE__,__METHOD__); $this->noconnect = true; - $CACHE[$this->index][$method] = null; system_message(array( 'title'=>sprintf('%s %s',_('Unable to connect to LDAP server'),$this->getName()), 'body'=>sprintf('%s: %s (%s) for %s',_('Error'),$this->getErrorMessage($method),$this->getErrorNum($method),$method), 'type'=>'error')); + $CACHE[$this->index][$method] = null; + } else { $this->noconnect = false;