]> git.sur5r.net Git - openldap/commitdiff
ITS#3979 only one glue overlay per tree is allowed
authorHoward Chu <hyc@openldap.org>
Wed, 31 Aug 2005 11:47:18 +0000 (11:47 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 31 Aug 2005 11:47:18 +0000 (11:47 +0000)
servers/slapd/overlays/glue.c

index 74fee3f652e371cfcd4b24646f5e8b4f221851ee..52f3034ceb1218a0303a727f3fe0f8b9d26c3c48 100644 (file)
@@ -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;