[turba] Re: Special character handling bug in LDAP addressbooks
John Dalbec
jpdalbec at ysu.edu
Fri Jun 13 07:56:22 PDT 2003
Scott Courtney wrote:
> On Friday 13 June 2003 08:27, you wrote:
>
>>Scott Courtney wrote:
>>
>>>dropping the "(Work)" part. But OpenLDAP (and probably some other LDAP
>>>servers) will not actually allow you to change the DN of an existing
>>>entry.
>>
>>This is wrong. Changing the DN (at least the first component) _is_
>>possible using the "modrdn" LDAP operation. From the command line one
>>uses "ldapmodrdn". In PHP it's something like "ldap_moddn".
>>HTH,
>>John
>
>
> I'll be darned! There's actually a comment on the PHP annotated manual to the
> effect that this wasn't possible, and like a fool I believed it. Your note
> prompted me to go sniffing around a little more carefully, and you're
> absolutely right!
>
> The function is ldap_rename(). It's a recent addition, so perhaps it was
> added after that user submitted the annotation.
Hm. Maybe moddn is the Perl::LDAP name.
>
> In any case, this will do the trick for me.
>
> That being said, I can verify that Turba does *not* change the DN when that
> attribute changes, at least not in my testing case. So apparently this
> ldap_rename() function isn't being called in that case.
Code would have to be added to figure out what the naming attribute is
and to handle changes to that attribute specially.
>
> Thanks for a great tip, though!
Glad I could help.
John
>
> Scott
>
More information about the turba
mailing list