Summary | not deleting LDAP attributes |
Queue | Turba |
Queue Version | 2.0.4 |
Type | Bug |
State | Duplicate |
Priority | 2. Medium |
Owners | |
Requester | xk3 (at) mompl (dot) org |
Created | 03/18/2006 (7052 days ago) |
Due | |
Updated | 03/19/2006 (7051 days ago) |
Assigned | |
Resolved | 03/19/2006 (7051 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Duplicate
bug #2440I don't know about the code or sideeffects, but wouldnt be an
array_change_key_case on attributes just after the map be sufficient?
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ not deleting LDAP attributes
Queue ⇒ Turba
some trouble with not deleted attributes. Some of the names of the
attributes in the array $attributes were mixed case (even in
sources.php.dist some of them in the map section are mixed case),
although they are explicitly expected to be lower case for the
decision to call ldap_mod_del.
./turba/config/sources.php.dist
-------------------------------
$cfgSources['personal_ldap'] = array(
[..]
'map' => array(
[..]
'nickname' => 'displayName',
'website' => 'labeledURI',
./turba/lib/Driver/ldap.php
---------------------------
/* The attributes in the attributes array are all lower case
* while they are mixedCase in the search result. So convert
* the keys to lower. */
$info = array_change_key_case($info, CASE_LOWER);
[..]
if (isset($attributes[$key]) && <-- but notset
Although I have not tested it, the cvs code looks like to have the
same problem.