[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#5572) Append global ACL to new backends



Full_Name: Rein Tollevik
Version: CVS head
OS: linux and solaris
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (81.93.160.250)
Submitted by: rein


The global ACLs are not added to newly created backends, i.e a server restart
must be done before they are included.  The patch at the end should fix this. OK
to commit Howard?

Rein Tollevik
Basefarm AS

diff -u -r1.335 bconfig.c
--- servers/slapd/bconfig.c	16 Jun 2008 12:45:30 -0000	1.335
+++ servers/slapd/bconfig.c	20 Jun 2008 16:51:03 -0000
@@ -4351,6 +4355,9 @@
 	/* Newly added databases and overlays need to be started up */
 	if ( CONFIG_ONLINE_ADD( ca )) {
 		if ( colst[0]->co_type == Cft_Database ) {
+			/* append global access controls */
+			acl_append( &ca->be->be_acl, frontendDB->be_acl, -1 );
+
 			rc = backend_startup_one( ca->be, &ca->reply );
 
 		} else if ( colst[0]->co_type == Cft_Overlay ) {