From 2057a8e1803b01266e3e5934b0995d16c07c1c66 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 20 Jun 2013 15:48:15 +0000 Subject: [PATCH] do NOT add posixAccount objectclass to contacts, it is unnecessary and has required attributes not provided by addressbook --- addressbook/inc/class.addressbook_ldap.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_ldap.inc.php b/addressbook/inc/class.addressbook_ldap.inc.php index 18178f2eb9..30d493f046 100644 --- a/addressbook/inc/class.addressbook_ldap.inc.php +++ b/addressbook/inc/class.addressbook_ldap.inc.php @@ -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; }