From: Ondřej Kuzník Date: Mon, 10 Mar 2025 11:37:59 +0000 (+0000) Subject: ITS#10312 Explicitly allow FALSE in 'subordinate' X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=82cee8f57a6001b03e6d19eb981b210721a5f225;p=thirdparty%2Fopenldap.git ITS#10312 Explicitly allow FALSE in 'subordinate' --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 31bc3ff1f1..886f120b04 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -2973,13 +2973,16 @@ config_subordinate(ConfigArgs *c) } if ( c->argc == 2 ) { - if ( strcasecmp( c->argv[1], "advertise" ) == 0 ) { + if ( strcasecmp( c->argv[1], "FALSE" ) == 0 ) { + rc = 0; + break; + } else if ( strcasecmp( c->argv[1], "advertise" ) == 0 ) { advertise = 1; } else if ( strcasecmp( c->argv[1], "TRUE" ) != 0 ) { /* log error */ snprintf( c->cr_msg, sizeof( c->cr_msg), - "subordinate must be \"TRUE\" or \"advertise\"" ); + "subordinate must be \"TRUE\", \"FALSE\" or \"advertise\"" ); Debug( LDAP_DEBUG_ANY, "%s: suffix \"%s\": %s.\n", c->log, c->be->be_suffix[0].bv_val, c->cr_msg );