mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
do not allow slapo-ppolicy to be global by now (ITS#5858)
This commit is contained in:
parent
ac800a8a2a
commit
0631c47576
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue