Author |
Message
|
garbagedook |
Posted: Tue Apr 07, 2009 12:15 pm Post subject: MQCSP maximum password length restriction? |
|
|
Novice
Joined: 15 May 2006 Posts: 11
|
Hi folks,
I have written a client MQSecurityExit in Java that creates an MQCSP structure (MQConnectionSecurityParameters) that puts in a username and password.
Everything works fine, except when the password exceeds 12 characters. It seems as though the java libraries are automatically truncating the password to 12 chars.
Is there a reason for this?
For example:
createConnection("user", "pass") will result in "user" and "pass" in the MQSecurityExit.
however,
createConnection("user", "passwordpassword") will result in "user" and "passwordpass" in the MQSecurityExit
Thanks,
Duke |
|
Back to top |
|
 |
garbagedook |
Posted: Fri Apr 17, 2009 8:59 am Post subject: |
|
|
Novice
Joined: 15 May 2006 Posts: 11
|
I opened a PMR with IBM.
They have confirmed this behavior and agree that is it not intended for the MQCSP structure.
They are looking into what they can do about it.
Just some more info. The truncating is being done in com.ibm.mq.MQv6InternalCommunications in the processProperties() method.
I've asked IBM to check to make sure other languages are not doing the same truncating. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Apr 17, 2009 11:13 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Just for the rest of us, what version of MQ do you see this behavior on? |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Apr 17, 2009 11:54 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
garbagedook wrote: |
The truncating is being done in com.ibm.mq.MQv6InternalCommunications in the processProperties() method. |
I thought this was a clear indication for MQ V6 ?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Sat Apr 18, 2009 1:57 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
fjb_saper wrote: |
garbagedook wrote: |
The truncating is being done in com.ibm.mq.MQv6InternalCommunications in the processProperties() method. |
I thought this was a clear indication for MQ V6 ?  |
Yes... 6.0.0.0? 6.0.2.6? |
|
Back to top |
|
 |
garbagedook |
Posted: Tue Apr 21, 2009 4:28 pm Post subject: |
|
|
Novice
Joined: 15 May 2006 Posts: 11
|
all the 6* and 7* versions are affected.
the .net libraries are not affected...they work fine and have no limit on the lengths.
Thanks,
Duke |
|
Back to top |
|
 |
garbagedook |
Posted: Mon Apr 27, 2009 1:11 pm Post subject: |
|
|
Novice
Joined: 15 May 2006 Posts: 11
|
I got the fix from IBM and tested it and it works. There is no restriction on length.
They said they are going to release this fix in their next release. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Mon Apr 27, 2009 3:08 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
|