do NOT add posixAccount objectclass to contacts, it is unnecessary and has required attributes not provided by addressbook

This commit is contained in:
Ralf Becker 2013-06-20 15:48:15 +00:00
parent 8d93ebb01e
commit 2057a8e180

View File

@ -115,7 +115,6 @@ class addressbook_ldap
var $schema2egw = array(
'posixaccount' => array(
'account_id' => 'uidnumber',
// 'account_lid' => 'uid',
'id' => 'uid',
'shadowexpire',
),
@ -509,7 +508,7 @@ class addressbook_ldap
{
if(!$this->ldapServerInfo->supportsObjectClass($objectclass)) continue;
if(!in_array($objectclass, $oldObjectclasses))
if($objectclass != 'posixaccount' && !in_array($objectclass, $oldObjectclasses))
{
$ldapContact['objectClass'][] = $objectclass;
}