]> git.sur5r.net Git - openldap/commitdiff
Previously added modrdn restriction to restrictive. Need to
authorKurt Zeilenga <kurt@openldap.org>
Thu, 19 Apr 2001 19:29:00 +0000 (19:29 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 19 Apr 2001 19:29:00 +0000 (19:29 +0000)
check newSuperior.

servers/slapd/back-ldbm/modrdn.c

index 2d8b4b01572eb379db99334473f75b75636da56d..d95077951884311c6bcc5acd0f8fe580acf72c38 100644 (file)
@@ -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,