"- setting ldapLimit to 2000, which is the default of slapd

- returning personal entries as personal (and not private)"
This commit is contained in:
Ralf Becker 2008-05-07 13:08:58 +00:00
parent 121752ed72
commit 84a9f87127

View File

@ -52,7 +52,7 @@ class so_ldap
/** /**
* @var int $ldapLimit how many rows to fetch from ldap server * @var int $ldapLimit how many rows to fetch from ldap server
*/ */
var $ldapLimit = 300; var $ldapLimit = 2000;
/** /**
* @var string $personalContactsDN holds the base DN for the personal addressbooks * @var string $personalContactsDN holds the base DN for the personal addressbooks
@ -867,7 +867,7 @@ class so_ldap
{ {
// personal addressbook // personal addressbook
$contact['owner'] = $GLOBALS['egw']->accounts->name2id($matches[1],'account_lid','u'); $contact['owner'] = $GLOBALS['egw']->accounts->name2id($matches[1],'account_lid','u');
$contact['private'] = 1; $contact['private'] = 0;
} }
elseif(preg_match('/cn=([^,]+),'.preg_quote($this->sharedContactsDN,'/').'$/i',$entry['dn'],$matches)) elseif(preg_match('/cn=([^,]+),'.preg_quote($this->sharedContactsDN,'/').'$/i',$entry['dn'],$matches))
{ {