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 » General IBM MQ Support » MQ 9.1 PAM auth fails when password is too long

Post new topic  Reply to topic
 MQ 9.1 PAM auth fails when password is too long « View previous topic :: View next topic » 
Author Message
skoesters
PostPosted: Tue Apr 09, 2019 6:25 am    Post subject: MQ 9.1 PAM auth fails when password is too long Reply with quote

Acolyte

Joined: 08 Jun 2008
Posts: 73

Hi,

i set my MQ 9.1 QMGR´s to use PAM for auth, to support local users as well als LDAP Users (The underlying OS - CentsOS 7 - is also using PAM).

For 4 out of 5 Users this is working fine.

log:

Code:
    pam_sss(ibmmq:auth): authentication success; logname= uid=1000 euid=0 tty= ruser= rhost= user=xxxxxx


For one User this is not working:

Code:
    amqoampx: pam_sss(ibmmq:auth): authentication failure; logname= uid=1000 euid=0 tty= ruser= rhost= user=yyyyyy
    amqoampx: pam_sss(ibmmq:auth): received for user yyyyyy: 17 (Failure setting user credentials)


I did some testing and figured out that the reason seems to be the password length of named user. When i use a shorter password (in this case a 11-digit password) it works fine. As soon as i use a longer password (tested with a 18-digit password) the error occurs.

fyi: The same password that is not working with mq, is working fine with ssh (also pam)

log:

Code:
    sshd[109243]: pam_sss(sshd:auth): authentication success; logname= uid=0 euid=0 tty=ssh ruser= rhost=xxx.xxx.xxx.xxx user=yyyyyy


so i had the idea to copy "/etc/pam.d/sshd" to "/etc/pam.d/ibmmq" to have the same settings as for ssh. Still i have the mq Problem with that one user.

Is there a way to fix this problem?

Thank you and best regards
Sebastian
Back to top
View user's profile Send private message
ankurlodhi
PostPosted: Tue Apr 09, 2019 6:39 am    Post subject: Reply with quote

Master

Joined: 19 Oct 2010
Posts: 266

MQ has it's limit of 12 character for any username's password,anything more then 12 MQ starts throwing errors. related to authentication.

https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.1.0/com.ibm.mq.ref.con.doc/q082110_.htm
Back to top
View user's profile Send private message
skoesters
PostPosted: Tue Apr 09, 2019 7:57 am    Post subject: Reply with quote

Acolyte

Joined: 08 Jun 2008
Posts: 73

i did not know that. thanks!
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 » General IBM MQ Support » MQ 9.1 PAM auth fails when password is too long
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.