Red Hat Bugzilla – Bug 838706
referint modrdn not working if case is different
Last modified: 2013-02-21 03:20:01 EST
This bug is created as a clone of upstream ticket: https://fedorahosted.org/389/ticket/405 Steps: * setup directory server with DIT dc=example,dc=com ou=People,dc=example,dc=com # NOTE uppercase People ou=Groups,dc=example,dc=com * Enable referint * Add group entry cn=allusers,ou=Groups,dc=example,dc=com like this: {{{ dn: cn=allusers,ou=Groups,dc=example,dc=com objectClass: top objectClass: groupofNames cn: allusers description: default group for users }}} * Add a user entry uid=testuser1,ou=People,dc=example,dc=com * Add member: uid=testuser1,ou=people,dc=example,dc=com to cn=allusers group * modrdn uid=testuser1 ldapmodify ... <<EOF changetype: modrdn newrdn: uid=testuser1changed deleteoldrdn: 1 EOF * search cn=allusers - it still lists the old dn member: uid=testuser1,ou=people,dc=example,dc=com Looking at the referint code, _update_one_per_mod() and _update_all_per_mod() are doing a PL_strstr - comparing a case normalized value against an un-case normalized value (that is, normalized but not case normalized).
r6718 | rmeggins@REDHAT.COM | 2012-07-09 16:37:36 -0600 (Mon, 09 Jul 2012) | 1 line Changed paths: M /trunk/testcases/DS/6.0/mbo/acceptance/mboModRdn.sh M /trunk/testcases/DS/6.0/mbo/acceptance/mboScen added test for Bug 838706 - referint modrdn not working if case is different
Mbo startup 100% (3/3) MemberOf run 100% (75/75) MemberOf cleanup 100% (1/1) All tests passed in the acceptance with 389-ds-base.x86_64 0:1.2.11.15-10.el6 build on rhel64. Hence marking bug as VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0503.html