[Date Prev][Date Next] [Chronological] [Thread] [Top]

Problem when using ldap_rename_s (ITS#1184)

Full_Name: Grahame Bowland
Version: 2.0.9
OS: Debian GNU/Linux
Submission from: (NULL) (

If I have an entry in my LDAP directory with a distinguished name:
  cn=Grahame Bowland + uid=433@pos.publishing, ou=University Communications
Services, o=The University of Western Australia

And then call ldap_rename_s(thatdn, "cn=Grahame Bowland (deleted)", "ou=Deleted
Entries, o=The University of Western Australia", 1)
You get back an error "Modify: delete value failed."

However, parsing the RDN, passing 0 as the last argument to ldap_rename_s so
that it doesn't try to remove the attributes and then removing the attribute
values after the rename does work.