Make the LookupRid access check match LookupName until
authorJeremy Allison <jra@samba.org>
Thu, 11 Dec 2008 01:04:29 +0000 (17:04 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 11 Dec 2008 01:04:29 +0000 (17:04 -0800)
we know the correct bits to use here.
Jeremy.

source/rpc_server/srv_samr_nt.c

index 4ee3ed6dd55010bb390f04f6ebb248d1a5bdd7ee..f3d0e1bd798dbbd482e74d39b2d5deab3b4310dd 100644 (file)
@@ -2131,7 +2131,7 @@ NTSTATUS _samr_LookupRids(pipes_struct *p,
                return NT_STATUS_INVALID_HANDLE;
 
        status = access_check_samr_function(acc_granted,
-                                           SAMR_DOMAIN_ACCESS_ENUM_ACCOUNTS,
+                                           0, /* Don't know the acc_bits yet */
                                            "_samr_LookupRids");
        if (!NT_STATUS_IS_OK(status)) {
                return status;