ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 197a8f5c6a4def3915cd07d07602e3ed80b082b0 Author: Noriko Hosoi nhosoi@totoro.usersys.redhat.com Date: Thu May 17 11:37:44 2012 -0700
Trac Ticket #338 - letters in object's cn get converted to lowercase when renaming object
Fix description: In modrdn, if newrdn is different from the oldrdn only by upper/lower cases, it was ignored in the entryrdn code. This patch recognizes the change and updates the entryrdn index. commit b1ed11117e02c0ae670f05f9850b20fd9334d567
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c b/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c index 5281f22..b548b29 100644 --- a/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c +++ b/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c @@ -542,7 +542,8 @@ entryrdn_rename_subtree(backend *be, if (newsrdn && slapi_rdn_get_rdn(newsrdn)) { /* if the new RDN value is identical to the old RDN, * we don't have to do "rename" */ - if (strcmp(slapi_rdn_get_nrdn(newsrdn), slapi_rdn_get_nrdn(&oldsrdn))) { + /* Don't miss the case changes, too. */ + if (strcmp(slapi_rdn_get_rdn(newsrdn), slapi_rdn_get_rdn(&oldsrdn))) { /* did not match; let's rename it */ mynewsrdn = newsrdn; }
389-commits@lists.fedoraproject.org