[turba] ldap driver editObject method and changing the "key"

Edward Rudd eddie at omegaware.com
Sun Jun 15 23:38:22 PDT 2003


I'm fixing an LDAP issue in the ldap driver where when you change the cn
attribute (which is part key in the DN) you have to rename the DN as well
(for strict compliance with LDAPv3)..
As it is right now if you run OpenLDAP 2.1.x as your LDAP backend and
change someones name (cn attribute) it will not change as you'd really
have to rename the DN as well.. the LDAP php module has a function
ldap_rename which does this for you.. and I have the patch ALMOST ready to
go except for one issue..
***the key***
after I rename the DN and exit the editObject method in the driver the
editobjectaction.php script then redisplays the edited entry.. which
'causes a problem as the entry does not exist anymore it has been
renamed.. How do I change what the key is when I rename it from within the
editObject method....






More information about the turba mailing list