Summary | uid ignored in dn array when adding new entry in personal_ldap |
Queue | Turba |
Queue Version | 2.0.2 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | jesus (at) cyc (dot) ull (dot) es |
Created | 05/24/2005 (7324 days ago) |
Due | |
Updated | 05/24/2005 (7324 days ago) |
Assigned | 05/24/2005 (7324 days ago) |
Resolved | 05/24/2005 (7324 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Assigned
UID before calling makeKey() was. Should be fixed in HEAD and with
2.0.3.
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ uid ignored in dn array when adding new entry in personal_ldap
Queue ⇒ Turba
New Attachment: Driver.php.patch
$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.