ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Security » Help with SSPI security

Post new topic  Reply to topic
 Help with SSPI security « View previous topic :: View next topic » 
Author Message
volox
PostPosted: Fri Jan 14, 2011 1:36 pm    Post subject: Help with SSPI security Reply with quote

Newbie

Joined: 14 Jan 2011
Posts: 7

Can anyone assist with the SSPI security exit. I've applied it to the security exit of one of the channels in NTLM mode. amqrspin(SCY_NTLM)

It seems to properly reject a connection from an invalid user (user from a different domain) but it doesn't accept connections from a user that ought to be authorized (is in the mqm group). The MQ explorer on the remote client just hangs trying to establish the connection and there are no error logs on the server side indicating any problem. What is it I'm missing?

I apologize in advance if this is a newbie question but I've dug around in the help and online and there just doesn't seem to be much information available on the SSPI security exit or how to actually set it up to work properly. I'm just trying to secure the installation so it isn't hanging wide open.

And while I'm asking, do you guys typically tend to remove the SERVER.DEF.* and SERVER.AUTO.* channels in order to secure the QMGR or do you leave them and add SSL and security exits to them?

Running WebSphere v7.0.1.3
On Windows 2008 R2 x64
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri Jan 14, 2011 3:09 pm    Post subject: Re: Help with SSPI security Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7716

volox wrote:

And while I'm asking, do you guys typically tend to remove the SERVER.DEF.* and SERVER.AUTO.* channels in order to secure the QMGR or do you leave them and add SSL and security exits to them?


Leave them, but disable them. Put a bogus ID in the MCAUSER, set the Max Message length to 1 and/or put a bogus security exit value in the definition.

If MQ Clients need to connect to your QM, give each app / user their own SVRCONN channel protected with SSL or a Security Exit, and tagged with an MCAUSER ID that only access to what you specifically grant for that ID's primary group. The SSL / Exit will control who can connect, the MCAUSER ID will control what they can do once connected.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
volox
PostPosted: Tue Jan 18, 2011 12:55 pm    Post subject: Reply with quote

Newbie

Joined: 14 Jan 2011
Posts: 7

Thanks Peter. That's helpful info.

Any experience with getting the SSPI security exit on Windows to work?
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Tue Jan 18, 2011 4:50 pm    Post subject: Re: Help with SSPI security Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
Location: London, ON Canada

volox wrote:
Can anyone assist with the SSPI security exit. I've applied it to the security exit of one of the channels in NTLM mode. amqrspin(SCY_NTLM)

Maybe that Windows server does not have NTLM installed or activated.

volox wrote:
It seems to properly reject a connection from an invalid user (user from a different domain) but it doesn't accept connections from a user that ought to be authorized (is in the mqm group).

Are you sure it is correctly rejecting the connection or rejecting the use of NTLM?

volox wrote:
The MQ explorer on the remote client just hangs trying to establish the connection and there are no error logs on the server side indicating any problem. What is it I'm missing?

That sounds like one of the bugs that I reported to IBM. There are lots of security related bugs in WMQ v7.

volox wrote:
And while I'm asking, do you guys typically tend to remove the SERVER.DEF.* and SERVER.AUTO.* channels in order to secure the QMGR or do you leave them and add SSL and security exits to them?

Properly secure them with a security solution.

If you want a 3rd party security solution that works and is fully supported then have a look at: MQ Authenticate User Security Exit

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
volox
PostPosted: Wed Jan 19, 2011 4:24 pm    Post subject: Reply with quote

Newbie

Joined: 14 Jan 2011
Posts: 7

Ok, got it to work... sort of...

When registering the connection to the remote queue manager within MQ Explorer I was selecting the security exit and using "amqrspin(SCY_NTLM)". I thought that since this was NTLM that my client side would use my current user context but it turns out I have to go to the subsequent page and click 'Enable User Identification' and enter my domain\User username - then it works and connects successfully.

So why doesn't the NTLM security exit pick up the user name from the context of the existing user? Or is it supposed to do that and it just isn't working properly?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 19, 2011 9:32 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

volox wrote:
Ok, got it to work... sort of...

When registering the connection to the remote queue manager within MQ Explorer I was selecting the security exit and using "amqrspin(SCY_NTLM)". I thought that since this was NTLM that my client side would use my current user context but it turns out I have to go to the subsequent page and click 'Enable User Identification' and enter my domain\User username - then it works and connects successfully.

So why doesn't the NTLM security exit pick up the user name from the context of the existing user? Or is it supposed to do that and it just isn't working properly?

AFAIK MQ Explorer uses a pure Java MQ Client and as such does not have the same ties to the system OS identification as .NET or a c client. This is why you have to supply this information.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
volox
PostPosted: Thu Jan 20, 2011 12:42 am    Post subject: Reply with quote

Newbie

Joined: 14 Jan 2011
Posts: 7

So when you specify the SSPI security exit name in the MQ Explorer with the location that has the C DLL in it, what is it picking up and using? Because if it is using / bridging over to the C / COM version, then I would expect it to have the ability to get the user context... Just trying to understand what's going on here.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 20, 2011 4:21 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

This is really PMR territory.

The MQExplorer does pick up user context, despite the fact that it's written in Java, because it has native libraries in it. Part of the reason it's only supported on Windows and Linux and not all Unixes...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Security » Help with SSPI security
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.