mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 12:09:35 -05:00
ITS#7249 Disallow memberof-addcheck when memberof is global
This commit is contained in:
parent
993f488e7b
commit
f2cba910d8
1 changed files with 9 additions and 0 deletions
|
|
@ -2151,6 +2151,15 @@ mo_cf_gen( ConfigArgs *c )
|
|||
|
||||
case MO_ADDCHECK:
|
||||
if ( c->value_int ) {
|
||||
if ( SLAP_ISGLOBALOVERLAY( c->be ) ) {
|
||||
snprintf( c->cr_msg, sizeof( c->cr_msg ),
|
||||
"addcheck functionality not supported "
|
||||
"when memberof is a global overlay",
|
||||
c->argv[ 1 ] );
|
||||
Debug( LDAP_DEBUG_ANY, "%s: %s.\n",
|
||||
c->log, c->cr_msg );
|
||||
return 1;
|
||||
}
|
||||
mo->mo_flags |= MEMBEROF_FADDCHECK;
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue