I am trying to run a service under a different user account 开发者_开发百科from the application that will access the service via remoting.
While under the same account everything is fine, but as soon as I use different accounts, I get an access denied error while trying to open the IPC port.
Is there something I am missing, as I can't see from the MSDN docs what is supposed to be done.
Thanks
FYI
Here is a link to the MSDN page that defines the authorizedGroup attribute: Server Channel Properties and here is the article on Authentication with the IPC Channel.
The key paragraph is
When an IpcServerChannel is created, an Access Control List (ACL) is created for the channel. By default, the ACL only contains the credentials the server application is running under. To communicate with the channel, the client (and therefore the IpcClientChannel) must run under the same credentials. You can, however, specify a Windows user or User group in the IPC server channel configuration that allows that user or group of users to access the channel.
To close:
Is the user account you are trying to use a member of the group specified in the authorizedGroups attribute in the channel definition? – S.Skov
(Dont upvote)
精彩评论