index 1263256612ad436c864a2dcd8188a7c1431007ab..ef8eb0565af9c46c6dfc751c35579dc229df722e 100644 (file)
$this->clearResult($srp);
$this->sr[$srp] = @ldap_search($this->cid, LDAP::fix($this->basedn), $filter, $attrs);
$this->error = @ldap_error($this->cid);
+ if ($this->error == "Size limit exceeded") {
+ global $config;
+ if (preg_match('/true/i', $config->get_cfg_value('sizelimitWarning'))) {
+ msg_dialog::display(_("Size Limit Exceeded"), sprintf(_("More than %d objects were found in a query, the rest is being ignored!"), session::global_get('size_limit')), WARNING_DIALOG);
+ }
+ }
$this->resetResult($srp);
$this->hasres[$srp]=true;