mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
ITS#1530 no value replace ACL fix
This commit is contained in:
parent
f91d5f484a
commit
9d307b4242
1 changed files with 11 additions and 1 deletions
|
|
@ -1091,10 +1091,20 @@ acl_check_modlist(
|
|||
|
||||
switch ( mlist->sml_op ) {
|
||||
case LDAP_MOD_REPLACE:
|
||||
case LDAP_MOD_ADD:
|
||||
if ( mlist->sml_bvalues == NULL ) {
|
||||
if ( ! access_allowed( be, conn, op, e,
|
||||
mlist->sml_desc, NULL, ACL_WRITE ) )
|
||||
{
|
||||
return( 0 );
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
/* fall thru */
|
||||
|
||||
case LDAP_MOD_ADD:
|
||||
assert( mlist->sml_bvalues != NULL );
|
||||
|
||||
for ( bv = mlist->sml_bvalues; bv->bv_val != NULL; bv++ ) {
|
||||
if ( ! access_allowed( be, conn, op, e,
|
||||
mlist->sml_desc, bv, ACL_WRITE ) )
|
||||
|
|
|
|||
Loading…
Reference in a new issue