ITS#10299 slapacl: use dummy entry_get in dry-run mode

This commit is contained in:
Howard Chu 2025-03-27 16:11:17 +00:00 committed by Quanah Gibson-Mount
parent e5d841f46d
commit f1ca58680a

View file

@ -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++ ) {