]> git.sur5r.net Git - openldap/commitdiff
Fix modrdn unique check
authorHoward Chu <hyc@symas.com>
Thu, 19 Sep 2013 22:58:40 +0000 (15:58 -0700)
committerHoward Chu <hyc@symas.com>
Thu, 19 Sep 2013 23:00:04 +0000 (16:00 -0700)
Just check normalized name match. Case-changes are allowed.

contrib/slapd-modules/samba4/rdnval.c

index 4ab1a4d0344fa3cc01b03d1a323e8ea18c8d8549..674a2991e5de7e420f5720e1e680bf2f3038a060 100644 (file)
@@ -343,12 +343,9 @@ rdnval_op_rename( Operation *op, SlapReply *rs )
        struct berval old;
        int rc;
 
-       dnRdn( &op->o_req_dn, &old );
-       if ( dn_match( &old, &op->orr_newrdn ) ) {
-               dnRdn( &op->o_req_ndn, &old );
-               if ( dn_match( &old, &op->orr_nnewrdn ) ) {
-                       return SLAP_CB_CONTINUE;
-               }
+       dnRdn( &op->o_req_ndn, &old );
+       if ( dn_match( &old, &op->orr_nnewrdn ) ) {
+               return SLAP_CB_CONTINUE;
        }
 
        rc = rdnval_rdn2vals( op, rs, &op->orr_newrdn, &op->orr_nnewrdn,