From 0631c47576657ea7de92610c0182371f27209cee Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 20 Dec 2008 22:02:06 +0000 Subject: [PATCH] do not allow slapo-ppolicy to be global by now (ITS#5858) --- servers/slapd/overlays/ppolicy.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 54607e2e81..05939ce986 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -2094,6 +2094,16 @@ ppolicy_db_init( { slap_overinst *on = (slap_overinst *) be->bd_info; + if ( SLAP_ISGLOBALOVERLAY( be ) ) { + /* do not allow slapo-ppolicy to be global by now (ITS#5858) */ + if ( cr ){ + snprintf( cr->msg, sizeof(cr->msg), + "slapo-ppolicy cannot be global" ); + fprintf( stderr, "%s\n", cr->msg ); + } + return 1; + } + /* Has User Schema been initialized yet? */ if ( !pwd_UsSchema[0].ad[0] ) { const char *err; -- 2.39.5