mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-02 20:10:11 -05:00
ITS#10299 slapacl: use dummy entry_get in dry-run mode
This commit is contained in:
parent
e5d841f46d
commit
f1ca58680a
1 changed files with 14 additions and 0 deletions
|
|
@ -60,6 +60,18 @@ print_access(
|
|||
return rc;
|
||||
}
|
||||
|
||||
static int
|
||||
slapacl_entry_get(
|
||||
Operation *op,
|
||||
struct berval *dn,
|
||||
ObjectClass *oc,
|
||||
AttributeDescription *ad,
|
||||
int rw,
|
||||
Entry **e )
|
||||
{
|
||||
return LDAP_UNWILLING_TO_PERFORM;
|
||||
}
|
||||
|
||||
int
|
||||
slapacl( int argc, char **argv )
|
||||
{
|
||||
|
|
@ -293,6 +305,8 @@ slapacl( int argc, char **argv )
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
op->o_bd->be_fetch = slapacl_entry_get;
|
||||
}
|
||||
|
||||
for ( ; argc--; argv++ ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue