index bbe1c17948e94aad56f5d7975f9d5f96641765a1..e9f3bac77741508bbef1b06ca074cbd6644788dd 100644 (file)
$msg = sprintf(_("XML error in gosa.conf: %s at line %d"),
xml_error_string(xml_get_error_code($this->parser)),
xml_get_current_line_number($this->parser));
- msg_dialog::display(_("Config file parsing"), $msg, FATAL_ERROR_DIALOG);
+ msg_dialog::display(_("Configuration error"), $msg, FATAL_ERROR_DIALOG);
exit;
}
}
function get_ldap_link($sizelimit= FALSE)
{
+ if($this->ldap === NULL || !is_resource($this->ldap->cid)){
-# REuse last ldap valid handle again.
-# DISABLED due to unpredictable results.
-
-#
-# if($this->ldap === NULL || !is_resource($this->ldap->cid)){
-#
/* Build new connection */
$this->ldap= ldap_init ($this->current['SERVER'], $this->current['BASE'],
$this->current['ADMIN'], $this->current['PASSWORD']);
} else {
$this->ldap->referrals= $this->current['REFERRAL'];
}
-# }
- return ($this->ldap);
+ }
+
+ return new ldapMultiplexer($this->ldap);
}
function set_current($name)