ITS#10312 Explicitly allow FALSE in 'subordinate'

This commit is contained in:
Ondřej Kuzník 2025-03-10 11:37:59 +00:00 committed by Quanah Gibson-Mount
parent c852e11cb9
commit 82cee8f57a

View file

@ -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 );