]> git.sur5r.net Git - openldap/commitdiff
If add to "" is allowed, also modrdn should
authorPierangelo Masarati <ando@openldap.org>
Sat, 7 Jul 2001 15:40:25 +0000 (15:40 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 7 Jul 2001 15:40:25 +0000 (15:40 +0000)
servers/slapd/back-ldbm/modrdn.c

index 89207e706110625b578ab4ae408bc8b420264fe1..fcdc66e18c2abfd9c3fd451d8acd0081e1046a39 100644 (file)
@@ -220,7 +220,7 @@ ldbm_back_modrdn(
 
        } else {
                /* no parent, modrdn entry directly under root */
-               if( ! be_isroot( be, op->o_ndn ) ) {
+               if( ! be_isroot( be, op->o_ndn ) && ! be_issuffix( be, "" ) ) {
 #ifdef NEW_LOGGING
                        LDAP_LOG(( "backend", LDAP_LEVEL_INFO,
                                   "ldbm_back_modrdn: (%s) no parent & not a root.\n",