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

source3/rpc_server/srv_samr_nt.c

index f942476..342f432 100644 (file)
@@ -2079,7 +2079,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;