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

Noriko Hosoi nhosoi at redhat.com
Tue Jul 29 15:26:04 UTC 2008


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 at redhat.com  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 at redhat.com  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".



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-devel/attachments/20080729/32c5eab8/attachment.bin 


More information about the 389-devel mailing list