Make the LookupRid access check match LookupName until
[samba.git] / source3 / rpc_server / srv_samr_nt.c
index f942476fe50425af50eddf8e9d0fcbae0dfad16c..342f432c4ef3d058c65766dacf2662e44e9ee86b 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;