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 » WebSphere Message Broker (ACE) Support » WS-Security but no LDAP or TFIM

Post new topic  Reply to topic
 WS-Security but no LDAP or TFIM « View previous topic :: View next topic » 
Author Message
goffinf
PostPosted: Wed Mar 07, 2012 4:33 pm    Post subject: WS-Security but no LDAP or TFIM Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

Broker version: 7 or 8

Having looked thru loads of posts here on the subject of ws-sec, I still can't find a definitive answer. So ...

Are there any options other than LDAP or TFIM that I could use to configure a SOAPInput node to authenticate an inbound request containing a WS-Security header (let's keep in simple for now and just say the UsernameToken variety) ?. For example could I use a keystore/truststore or a database ?

Similarly can I create a WS-Security header on an outbound request from SOAPRequest node, without the need for LDAP/TFIM ?

There are some reasons why I'm asking. I won't bore you with details but it's primarily a matter of support for these two in my company (or rather the lack of it).

I am guessing that I could 'kruft' up some code myself, but I'd like to see how much of the standard functionality provided by the base product I can use before resorting to that, if possible.

Regards

Fraser.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Mar 08, 2012 1:08 pm    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

The user identity can be taken from WS-Security header once you have the PS defined. Have you defined the PS? If so, please post them so we can see how you have done it.


Code:

mqsireportproperties myBroker -c PolicySets -o myPolicySet -n ws-security -p myPolicySet.xml 

mqsireportproperties myBroker -c PolicySetBindings -o myPolicySetBinding -n ws-security -p myPolicySetBinding.xml


_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
ramires
PostPosted: Thu Mar 08, 2012 3:57 pm    Post subject: Reply with quote

Knight

Joined: 24 Jun 2001
Posts: 523
Location: Portugal - Lisboa

that's an interesting theme, am also trying to find the answer. This article on IBM developerworks

http://www.ibm.com/developerworks/websphere/library/techarticles/1008_fan/1008_fan.html

it's a good introduction to this. But it has a paragraph that starts with: "An external security provider is required for the Web service identity authentication"
Is it always needed ?
_________________
Obrigado / Thanks you
Back to top
View user's profile Send private message
bielesibub
PostPosted: Mon Mar 12, 2012 8:29 am    Post subject: Reply with quote

Apprentice

Joined: 02 Jul 2008
Posts: 40
Location: Hampshire, UK

AFAIK....

Quote:
Are there any options other than LDAP or TFIM that I could use to configure a SOAPInput node to authenticate an inbound request containing a WS-Security header (let's keep in simple for now and just say the UsernameToken variety) ?.


Not that I know of, other than adding some 'downstream' checking.

Quote:
For example could I use a keystore/truststore or a database ?


keystore/truststore this wouldn't work for UsernameToken.. x.509 yes..
You could have a database that contained a list of valid users, you could check incoming usernames with a compute node following the SOAPInput. Usernames can be got from a message either by applying a policy/binding (the username should appear in Properties) or using ESQL to drill into the message.

Quote:
Similarly can I create a WS-Security header on an outbound request from SOAPRequest node, without the need for LDAP/TFIM ?


Yes, you can do this a couple of ways.. add the security header in a compute node before making the request, or through a security profile.

Good luck...

(It feels like I've been banging my head against a brick wall the past year trying to get WS-Security (with Kerberos, x.509, SAML) working between .Net and WMB v7)
Back to top
View user's profile Send private message MSN Messenger
goffinf
PostPosted: Mon Mar 12, 2012 9:04 am    Post subject: Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

Thx beilesibub, I was coming to the same conclusion but its good to hear from someone who has trodden that path already. Its not a problem per se, I just wanted to check whether I needed to venture into the wonderful world of TFIM or not.

Extracting the credentials with a policyset/binding and setting up our own Db *is* a possibility, but my gut instinct tells me that it would be better to get Broker to do as much of the heavy lifting as possible for anything other than the most trivial username/pwd stuff. Who knows, maybe we'll want to get into [partial] signing, and all sorts (although frankly its pretty hard to get anyone internal to take even basic security measures seriously ... but if it easy [enough] then its gotta be worth it imho)

Quote:
keystore/truststore this wouldn't work for UsernameToken.. x.509 yes..


If I *was* using X509 (which in many cases I probably will - just starting with the UNT profile cos its easier), what would be the best way to do the authentication/authorisation check to a keystore (JCN ?) ?

Lancelotlinc: I was just using the default policyset/binding for now whilst in learning mode.

Regards

Fraser.
Back to top
View user's profile Send private message
bielesibub
PostPosted: Mon Mar 12, 2012 9:20 am    Post subject: Reply with quote

Apprentice

Joined: 02 Jul 2008
Posts: 40
Location: Hampshire, UK

Quote:
If I *was* using X509 (which in many cases I probably will - just starting with the UNT profile cos its easier), what would be the best way to do the authentication/authorisation check to a keystore (JCN ?) ?


Simple way is to add public keys to a trust store, you can set the trust store to be broker wide or per execution group. You'd need to create and apply a policy set to check your tokens, but beware the policy set editor is the spawn of the devil!
If you use a truststore per execution group level then this could possibly be used to granularise (if thats a word) your authorisation.

I used TFIM/TAM here.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WS-Security but no LDAP or TFIM
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.