[Fedora-directory-devel] please review: [Bug 428232] DN Rename with case change only fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Summary: DN Rename with case change only fails


https://bugzilla.redhat.com/show_bug.cgi?id=428232

Description of problem: modrdn treated DN case insensitive.  If the new dn and the old dn were identical except the case difference, the code stopped there and returned LDAP_ALREADY_EXISTS.  Thus, users had no way to change the case in the DN.


------- Additional Comments From nhosoi@xxxxxxxxxx  2008-07-29 10:59 EST -------
Created an attachment (id=312887)
--> (https://bugzilla.redhat.com/attachment.cgi?id=312887&action=view)
cvs diffs
Files:
slapi-plugin.h
dn.c
back-ldbm/ldbm_modrdn.c

Description: added additional checks if the original DN and the to-be-updated
DN are different in terms of the cases.  If the cases do not match, instead of
returning LDAP_ALREADY_EXISTS, continue the modrdn process.


------- Additional Comments From nhosoi@xxxxxxxxxx  2008-07-29 11:02 EST -------
Created an attachment (id=312890)
--> (https://bugzilla.redhat.com/attachment.cgi?id=312890&action=view)
modrdn test program modrdn.c

How to verify: 1. Replace the modrdn.c in the mozilla ldap client's examples and compile it.
2. Prepare a suffix "dc=example,dc=com" on the test server.
3. run the program
$ ./modrdn <port> <directory_manager_password>
Added entry "cn=Jacques Smith, dc=example,dc=com".
Calling modrdn: "cn=Jacques Smith, dc=example,dc=com" => "cn=Jacques SMITH"
The modrdn operation was successful.  Entry
"cn=Jacques Smith, dc=example,dc=com" has been changed to
"cn=Jacques SMITH, dc=example,dc=com".



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
Fedora-directory-devel mailing list
Fedora-directory-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-devel

[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux