]> 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>
Wed, 12 Mar 2025 15:44:57 +0000 (15:44 +0000)
servers/slapd/bconfig.c

index 31bc3ff1f1fd752930055d8438ffea178bc150d3..886f120b04376d3b93546c3d0deb57b4536749ec 100644 (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 );