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

source/rpc_server/srv_samr_nt.c

index 0ab8b5dfd552014c60227bbe892196ae98e9412a..6b1d465e692bbbe70e793cefaed820d36aaacbf4 100644 (file)
@@ -2130,7 +2130,7 @@ NTSTATUS _samr_LookupRids(pipes_struct *p,
                return NT_STATUS_INVALID_HANDLE;
 
        status = access_check_samr_function(acc_granted,
-                                           SA_RIGHT_DOMAIN_ENUM_ACCOUNTS,
+                                           0, /* Don't know the acc_bits yet */
                                            "_samr__LookupRids");
        if (!NT_STATUS_IS_OK(status)) {
                return status;