]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10091 Do not allow dynlist being configured as global
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 15 Aug 2023 12:07:46 +0000 (13:07 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 23 Oct 2023 19:16:01 +0000 (19:16 +0000)
servers/slapd/overlays/dynlist.c

index 10cacf97988f4ab9939bb2bd30508d6c738f3fe0..b552353a7d97d411860bebe39555f0b39e68921e 100644 (file)
@@ -2740,6 +2740,11 @@ dynlist_db_init(
        slap_overinst *on = (slap_overinst *)be->bd_info;
        dynlist_gen_t *dlg;
 
+       if ( SLAP_ISGLOBALOVERLAY( be ) ) {
+               Debug( LDAP_DEBUG_ANY, "dynlist cannot be used as global overlay.\n" );
+               return 1;
+       }
+
        dlg = (dynlist_gen_t *)ch_malloc( sizeof( *dlg ));
        on->on_bi.bi_private = dlg;
        dlg->dlg_dli = NULL;