]> git.sur5r.net Git - openldap/commitdiff
ITS#5946 always allow mirrormode to be set to FALSE
authorHoward Chu <hyc@openldap.org>
Wed, 29 Jul 2009 09:21:50 +0000 (09:21 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 29 Jul 2009 09:21:50 +0000 (09:21 +0000)
servers/slapd/bconfig.c

index e4ccd84d0a872b5a77cc25e53e91d3d839270dbc..2e141fa8c4907cbb20a8d76a14bdbc82829beb20 100644 (file)
@@ -1859,7 +1859,7 @@ sortval_reject:
                        break;
 
                case CFG_MIRRORMODE:
-                       if(!SLAP_SHADOW(c->be)) {
+                       if(c->value_int && !SLAP_SHADOW(c->be)) {
                                snprintf( c->cr_msg, sizeof( c->cr_msg ), "<%s> database is not a shadow",
                                        c->argv[0] );
                                Debug(LDAP_DEBUG_ANY, "%s: %s\n",