]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/modify.c
New access_allowed()
[openldap] / servers / slapd / back-shell / modify.c
index 1f0d1208bfa104bd99ad44dfe089f66c5ef0f3b1..70ccd49aa98e153d8586bfd66009fdb73a45d52a 100644 (file)
@@ -45,11 +45,11 @@ shell_back_modify(
 {
        Modification *mod;
        struct shellinfo        *si = (struct shellinfo *) op->o_bd->be_private;
-       AttributeDescription *entry = slap_schema.si_ad_entry;
        Modifications *ml  = op->orm_modlist;
        Entry e;
        FILE                    *rfp, *wfp;
        int                     i;
+       AclCheck        ak = { &e, slap_schema.si_ad_entry, NULL, ACL_WRITE, NULL };
 
        if ( si->si_modify == NULL ) {
                send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
@@ -66,8 +66,7 @@ shell_back_modify(
        e.e_bv.bv_val = NULL;
        e.e_private = NULL;
 
-       if ( ! access_allowed( op, &e,
-               entry, NULL, ACL_WRITE, NULL ) )
+       if ( ! access_allowed( op, &ak ))
        {
                send_ldap_error( op, rs, LDAP_INSUFFICIENT_ACCESS, NULL );
                return -1;