]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10299 slapacl: use dummy entry_get in dry-run mode
authorHoward Chu <hyc@openldap.org>
Thu, 27 Mar 2025 16:11:17 +0000 (16:11 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 1 Apr 2025 19:41:10 +0000 (19:41 +0000)
servers/slapd/slapacl.c

index 9c67e5e1c0f2029963e124a162f3b8fc4a3e620c..020c05d892ad8e98cd702121ea895e764ce8d11f 100644 (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++ ) {