Microsoft Service Bus 1.0 cannot communicate with a server outside the client domain

I installed Service Bus 1.0 on a server connected to a domain.

In a client application running on a PC connected to the same domain, I can create queues, messages, etc. I am using a connection string defining user credentials in the same domain. Everything works.

From a client application running on a PC outside the domain, nothing works. I thought this was because you could not use a user from the server domain if the client application was not in the same domain, so I am also trying to use the connection string containing SharedSecretIssuer and ShareSecretValue. With this approach, I got:

The token provider service was not available when receiving the token for "https://servicebus01.dns1.XXXXXX.com:9355/XXXXXServiceBus/WRAPv0.9/". Innner exception contains "The remote server returned an error: (404) Not found.".

Does anyone know if it is possible to connect to the service bus server outside the domain of this server?

+3
source share
2 answers

In addition, even if your client is not connected to the domain, you can use OAuthTokenProvider.

Once you have created your namespace and factory manager and before performing any operation:

namespaceManager.Settings.TokenProvider = TokenProvider.CreateOAuthTokenProvider (new Uri [] {new Uri ("https://servicebus01.dns1.XXXXXX.com:9355")}, new NetworkCredential ("user", "password", "domain" )))

messagingFactory.GetSettings (). TokenProvider = TokenProvider.CreateOAuthTokenProvider (new Uri [] {new Uri ("https://servicebus01.dns1.XXXXXX.com:9355")}, new NetworkCredential ("user", "password" "," domain "));

+3
source

I found a problem!

The computer running the client application was not joined to the domain at all. It must be joined to the domain, even if there is no trust between the client s and server domains.

Strange restriction ...

0
source

All Articles