From da0e6d3d984d8fb16367ffd7f7f66a277d371ac8 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 19 Apr 2001 19:29:00 +0000 Subject: [PATCH] Previously added modrdn restriction to restrictive. Need to check newSuperior. --- servers/slapd/back-ldbm/modrdn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index 2d8b4b0157..d950779518 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -478,7 +478,9 @@ ldbm_back_modrdn( goto return_results; } - if ( strcasecmp( old_rdn_type, new_rdn_type ) != 0 ) { + if ( newSuperior == NULL + && strcasecmp( old_rdn_type, new_rdn_type ) != 0 ) + { /* Not a big deal but we may say something */ #ifdef NEW_LOGGING LDAP_LOG(( "backend", LDAP_LEVEL_INFO, -- 2.39.5