MSMQ AD permissions

We have a system using two machines to do some processing. Let's call the machine that does the processing PROCESSOR, and the machine giving it items to process SERVER. Both are running Windows Server 2008. We have one Windows Service running on SERVER which needs to use MSMQ to send messages to a public queue PROCESSOR.

On PROCESSOR, we have another Windows Service which pulls items from the queue for processing.

The two machines are in the same domain, and all works fine if we run both services under accounts with domain admin privileges. However, we need the accounts to have the minimum privileges possible (particularly for the service on SERVER).

Before elevating the rights of the account we're using for the service on PROCESSOR, I tried giving it full rights to MSMQ. However, this didn't seem to be enough, and as soon as the service tried to do anything with MSMQ (first thing it does on starting is to check if relevant queues exist), I got an exception saying "Access to Message Queuing is denied".

Does anybody know what permissions need to be granted to an AD account in order for it to be able to use MSMQ?

Thanks,

Andrew

Answers


Run your service under a defined system account, like (I believe Network), then set the permissions on the MSMQ to full control for that.

When I've used this in the past I just cheated and allowed access to "Everyone". But in a domain setting the best way is to create a domain user and set that for the service and permissions on the MQ.


You need to set permissions on the objects in Active Directory. So you'll need Get Properties permission if you are querying objects, for example. This should be on the MSMQ object under the computer object and the queue object(s) under the MSMQ object. Also, the defaults are going to be restricted to allowing everyone to send but not receive so you will need to add that access for the domain account you are using to be able to read messages.


Need Your Help

Specify monitor when opening file. (.bat)

parameters batch-file launching-application multiple-monitors

The following .bat file below simply opens two text files overlaying them, but I'm wondering if it's possible to define a specific display source, or if anyone can assist in providing the correct

Passing Command Arugments with textChanged

c# asp.net gridview

I am very new to .net, so please bear with me. I have a gridview that has a textbox and a label in each row. The textbox displays the sort id number that the user can change. The function I wrot...