[Tickets #2027] NEW: uid ignored in dn array when adding new entry in personal_ldap
bugs@bugs.horde.org
bugs at bugs.horde.org
Tue May 24 05:38:44 PDT 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=2027
-----------------------------------------------------------------------
Ticket | 2027
Created By | jesus at cyc.ull.es
Summary | uid ignored in dn array when adding new entry in personal_ldap
Queue | Turba
Version | 2.0.2
State | Unconfirmed
Priority | 1. Low
Type | Bug
Owners |
+New Attachment | Driver.php.patch
-----------------------------------------------------------------------
jesus at cyc.ull.es (2005-05-24 05:38) wrote:
I have this source:
$uid = Auth::getBareAuth();
$basedn = 'dc=cyc,dc=ull,dc=es';
$cfgSources['personal_ldap'] = array(
'title' => _("My Addressbook"),
'type' => 'ldap',
'params' => array(
'server' => 'localhost',
'port' => 389,
'tls' => false,
'root' => 'ou=' . $uid . ',ou=Addressbooks,' . $basedn,
'bind_dn' => 'uid=' . $uid . ',ou=Personas,' . $basedn,
'bind_password' => Auth::getCredential('password'),
'dn' => array('uid'),
'filter' => 'objectclass=inetOrgPerson',
'objectclass' => array('top',
'person',
'inetOrgPerson',
// 'calEntry',
'organizationalPerson'),
'charset' => 'utf-8',
'version' => 3
),
'map' => array(
'__key' => 'dn',
'__uid' => 'uid',
'name' => 'cn',
'email' => 'mail',
'lastname' => 'sn',
'title' => 'title',
'company' => 'organizationname',
'businessCategory' => 'businesscategory',
'workAddress' => 'postaladdress',
'workPostalCode' => 'postalcode',
'workPhone' => 'telephonenumber',
'fax' => 'facsimiletelephonenumber',
'homeAddress' => 'homepostaladdress',
'homePhone' => 'homephone',
'cellPhone' => 'mobile',
'notes' => 'description',
// Evolution interopt attributes: (those that do not require the
evolution.schema)
'office' => 'roomNumber',
'department' => 'ou',
'nickname' => 'displayName',
'website' => 'labeledURI',
// These are not stored on the LDAP server.
'pgpPublicKey' => 'object_pgppublickey',
'smimePublicKey' => 'object_smimepublickey',
// From rfc2739.schema:
// 'freebusyUrl' => 'calFBURL',
),
'search' => array(
'name',
'email',
'businessCategory',
'title',
'homePhone',
'workPhone',
'cellPhone',
'homeAddress'
),
'strict' => array(
'dn',
),
'public' => false,
'readonly' => false,
'admin' => array($uid),
'export' => true
);
I can't add new entries because the driver ignore the uid attribute when
making the new rdn. I've seen the same problem when set 'dn' => array('cn',
'uid'). I've solved the problem with de attached patch.
More information about the bugs
mailing list