From: Howard Chu Date: Wed, 31 Aug 2005 11:47:18 +0000 (+0000) Subject: ITS#3979 only one glue overlay per tree is allowed X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~527 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=be1216819cd7a15cc00d231bf818bba2d7660b08;p=openldap ITS#3979 only one glue overlay per tree is allowed --- diff --git a/servers/slapd/overlays/glue.c b/servers/slapd/overlays/glue.c index 74fee3f652..52f3034ceb 100644 --- a/servers/slapd/overlays/glue.c +++ b/servers/slapd/overlays/glue.c @@ -821,6 +821,12 @@ glue_db_config( fname, lineno, argv[1] ); return -1; } + if ( SLAP_GLUE_INSTANCE( b2 )) { + fprintf( stderr, "%s: line %d: backend for %s is already glued; " + "only one glue overlay is allowed per tree.\n", + fname, lineno, argv[1] ); + return -1; + } SLAP_DBFLAGS(b2) |= SLAP_DBFLAG_GLUE_SUBORDINATE; if ( advertise ) { SLAP_DBFLAGS(b2) |= SLAP_DBFLAG_GLUE_ADVERTISE;