]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10312 Explicitly allow FALSE in 'subordinate'
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 10 Mar 2025 11:37:59 +0000 (11:37 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 6 May 2025 15:15:03 +0000 (15:15 +0000)
servers/slapd/bconfig.c

index 4def5629016be59c837ae05a27fddc43177d813b..1f1252d5dbb37bae73c73c3b790c8dc9b59c02e3 100644 (file)
@@ -2972,13 +2972,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 );