From 7915f51889eec1bbaff386f997ef885162979a1c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 19 Sep 2013 15:58:40 -0700 Subject: [PATCH] Fix modrdn unique check Just check normalized name match. Case-changes are allowed. --- contrib/slapd-modules/samba4/rdnval.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/contrib/slapd-modules/samba4/rdnval.c b/contrib/slapd-modules/samba4/rdnval.c index 4ab1a4d034..674a2991e5 100644 --- a/contrib/slapd-modules/samba4/rdnval.c +++ b/contrib/slapd-modules/samba4/rdnval.c @@ -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, -- 2.39.5