IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Password Validation while login to Enterprise manager

  • 1.  Password Validation while login to Enterprise manager

    Posted 06/13/16 05:53 AM

    Hi,

    We have connected UM realm to LDAP. While logging into EM to connect to this remote realm, it does User validation correctly. But Password validation is not working as expected. Whatever the password we type, it accepts if user given is correct.

    Realm is in linux and EM is in Windows machines.

    Please let me know how to resolve this.


    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #webMethods


  • 2.  RE: Password Validation while login to Enterprise manager

    Posted 06/13/16 07:37 AM

    Did you add the following two Java system properties to the server_common.conf?
    wrapper.java.additional.19=-DNirvana.auth.enabled=y
    wrapper.java.additional.20=-DNirvana.auth.mandatory=y

    Also, typically the user that installed UM on localhost has full access anyway, so please try using the LDAP connection from a different machine.

    Hope this helps.


    #webMethods
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker


  • 3.  RE: Password Validation while login to Enterprise manager

    Posted 06/13/16 08:43 AM

    Hi Jonathan,
    We have configured below settings in Server_Common.conf.
    wrapper.java.additional.17=-DNirvana.auth.enabled=y
    wrapper.java.additional.18=-DNirvana.auth.mandatory=y
    wrapper.java.additional.19=-DNirvana.auth.server.jaaskey=UM
    wrapper.java.additional.20=-Djava.security.auth.login.config=jaas.conf
    wrapper.java.additional.21=-DEnableDebug=auth

    Also i am trying from a different machine to login.


    #webMethods
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker


  • 4.  RE: Password Validation while login to Enterprise manager

    Posted 06/13/16 09:14 AM

    Is the number after .additional in the Server_Common.conf unique?
    What happens if you try to connect from using a username that doesn’t exist in LDAP?
    Can you share the jaas.conf (remove any sensitive information first)?


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 5.  RE: Password Validation while login to Enterprise manager

    Posted 06/13/16 10:16 AM

    Hi Jonathan,

    1. Yes the number is unique.

    2. Even if i don’t connect with a user name, its get through, if i give the users inside users.txt it gets through, if i give CDS users it gets through, When i give non CDS user or some name which is not there inside users.txt ti does not get through. But all these users password is not getting validated

    3. My jaas.conf looks liek below.
      UM {
      com.softwareag.security.sin.is.ldap.lm.LDAPLoginModule sufficient
      url=“”
      prin=“”
      cred=admin
      userrootdn=“”
      uidprop=“CN”
      grouprootdn=“cn=integration,cn=usergroups,ou=security,ou=global,o=xx.com
      groupobjclass=“group”
      personobjclass=“person”
      logLevel=debug;

       com.softwareag.security.jaas.login.internal.InternalLoginModule sufficient
      template_section=INTERNAL
      logCallback=true
      internalRepository="users.txt";
      

    };


    #Universal-Messaging-Broker
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Password Validation while login to Enterprise manager

    Posted 06/14/16 08:33 AM

    Hi Jonathan,

    I have observed the following things while logging.
    Below setting is there in Server_Common.conf

    Changed for LDAP and local user store (enablig basic auth) ------------

    wrapper.java.additional.101=-DNirvana.auth.enabled=y
    wrapper.java.additional.102=-DNirvana.auth.mandatory=y
    wrapper.java.additional.103=-DNirvana.auth.server.jaaskey=UM
    wrapper.java.additional.104=-Djava.security.auth.login.config=jaas.conf
    wrapper.java.additional.105=-DEnableDebug=auth

    wrapper.java.additional.101=-XX:MaxDirectMemorySize=1G

    If this setting is there I can connect to EM with user or without user credentials. But does not validate password.
    If i make wrapper.java.additional.101=-XX:MaxDirectMemorySize=1G to wrapper.java.additional.106=-XX:MaxDirectMemorySize=1G then i am not able to login to realm from EM with or without user. I get the error as Unable to Establish the connection to Realm.

    Could you please explain me this.


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 7.  RE: Password Validation while login to Enterprise manager

    Posted 06/14/16 10:22 AM

    Hello Kavitha,

    as Jonathan explained earlier the indexes in the “wrapper.java.additional.xxx” entries must be unique. Otherwise the latter wrapper.java.additional.101 overwrites the previous wrapper.java.additional.101 entry.
    Note that they must be unique not only within the Server_Common.conf file, but within the ServerCommon.conf and the nserver.conf (respectively nserverdaemon.conf), since these latter ones import the common one, which in tanuki’s terms is essentially the same as merging the text files.

    After making sure you are using unique indexes, can you also confirm that you have the additional JAAS libraries added to the classpath of the UM server. That would be essential because generally (and that may depend on the version you are using) the JAAS modules (such as com.softwareag.security.sin.is.ldap.lm.LDAPLoginModule) are not delivered with UM installation and the respective jar files are not on the server classpath.

    Stefan


    #webMethods
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker


  • 8.  RE: Password Validation while login to Enterprise manager

    Posted 06/14/16 10:55 AM

    Hi Stefan,

    Yes i have added the required jars to the server class path.
    Have configured Jass.conf file to both LDAP and internal repository that is users.txt.

    I have modified the XX number to be unique for all the properties.
    Now when i try to login to EM, it gives me unable to establish connection to realm with users list from LDAP to users.txt


    #Universal-Messaging-Broker
    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 04:06 AM

    Hi All,

    I am still not able to fix this issue.

    Can someone please suggest any solution for the problem.

    1. Tryign to configure both LDAP and internal repository.
    2. Copied all the required jars files and added in classpath in UM.
    3. Added Authentication required property as given earlier.

    Still getting unable to establish connection to realm.


    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #webMethods


  • 10.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 04:56 AM

    Please provide the UM logs and complete Server_Common.conf.

    Also check and confirm the below points…

    • Whether your UM is clustered
    • Have you seen any intermittent connectivity between EM and realm, whether both are in same network / different network.
    • Have you seen any errors in logs ,

    Thanks


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 11.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 05:10 AM

    Hello Kavitha,

    the reason you get a failure suggesting that the login failed against the users.txt file is most probably because that was the last thing that the JAAS authentication went through.

    I’d suggest setting the server log level to 0 (from Enterprise manager) and changing the -DEnableDebug=auth property in Server_Common.conf to -DEnableDebug=all
    Then restart the server and try to log in again. In nirvana.log (under the server data directory) you should see the authentication failures and the reason for them.
    We may also need to turn on the JAAS login modules verbose debug log.

    One more question - are you unable to login both against the LDAP and the internal user repo (users.txt)? Your JAAS configuration suggests that the authenticator would first try the LDAP server, and if that fails it will try to authenticate against the users.txt file, so you should be able to try for example the default SAG user (Administrator:manage if you haven’t changed it).

    Stefan


    #webMethods
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker


  • 12.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 06:09 AM

    Hi Stefan,

    I tried everything you said.
    This is what i see in nirvana log.
    ,SASL-ServerLoginContext/88: [debug] Authenticating PLAIN username=_kamah3 - authorisation-ID=null/allowed=false
    SASL-ServerLoginContext/1874: [debug] Authenticating PLAIN username=Administrator - authorisation-ID=null/allowed=false

    I am not able to login to users.txt users nor LDAP users.
    I tried to login with Administrator user


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 13.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 06:17 AM

    What is the version version and the patch level you are on?


    #Universal-Messaging-Broker
    #webMethods
    #Integration-Server-and-ESB


  • 14.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 06:44 AM


  • 15.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 07:03 AM

    Could you attach the nirvana.log file here?

    Thanks,
    Stefan


    #webMethods
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker


  • 16.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 07:33 AM

    Hi Stefan,

    I am attaching some part of the nirvana log file.

    nirvana.log (24.5 KB)


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 17.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 07:39 AM

    Hi Stefan,

    I also get the below logs when i do grep on JAAS in nirvana.log

    [Thu Jun 16 08:16:13 UTC 2016],Server Authentication: Enabled=true, Mandatory=true, JAAS-key=UM/std=false, SuperUser=webm@localhost, Exempt=1/[@]
    at com.pcbsys.foundation.security.auth.fAuthentication.authenticateJAAS(fAuthentication.java:55)
    at com.pcbsys.foundation.security.auth.fAuthentication.authenticateJAAS(fAuthentication.java:55)
    at com.pcbsys.foundation.security.auth.fAuthentication.authenticateJAAS(fAuthentication.java:55)
    at com.pcbsys.foundation.security.auth.fAuthentication.authenticateJAAS(fAuthentication.java:55)


    #webMethods
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker


  • 18.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 08:10 AM

    Hi Stefan,

    I have modifed jaas.conf as below.

    UM {
    com.softwareag.security.jaas.login.internal.InternalLoginModule sufficient
    template_section=INTERNAL
    logCallback=true
    internalRepository=“fullpath/UniversalMessaging/server/um_01/bin/users.txt”;
    logLevel=debug;
    };

    Still i am not able to login to EM using users.txt


    #webMethods
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker


  • 19.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 08:54 AM

    Hello Kavitha,

    The error in the log:

    java.lang.SecurityException: java.io.IOException: Configuration Error: Line 5: expected [option key], found [null]

    suggests a syntactic error in the jaas configuration file. In my experience the most common cause is some separator character (comma, semi-colon) in between the login module configuration properties.
    If you attach the jaas configuration file here I can have a quick look.

    Stefan


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 20.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 08:56 AM

    I just realized you’ve pasted your jaas configuration with the users.txt file - the syntactic error in this case would be the semi-colon character after the path to the users txt file (since you have another property following that).

    Stefan


    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #webMethods


  • 21.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 09:07 AM

    Thank you so much Stefan for your valuable time. I really appreciate your help.

    I have modified the jaas file as you said.

    UM {
    com.softwareag.security.sin.is.ldap.lm.LDAPLoginModule sufficient
    url=“ldap://xx.yy.com:389”
    prin=“uid=aa,ou=ServiceAccounts,ou=Global,o=yy.com
    cred=user
    userrootdn=“o=yy.com
    uidprop=“CN”
    grouprootdn=“cn=integration,cn=usergroups,ou=security,ou=global,o=yy.com
    groupobjclass=“group”
    personobjclass=“person”
    logLevel=debug

        com.softwareag.security.jaas.login.internal.InternalLoginModule sufficient
    template_section=INTERNAL
    logCallback=true
    internalRepository="path/UniversalMessaging/server/um_01/bin/users.txt";
    

    };

    I am still not able to connect to EM.

    Do i need to do any configurations at EM end ?


    #Universal-Messaging-Broker
    #webMethods
    #Integration-Server-and-ESB


  • 22.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 09:16 AM

    Hi Stefan,

    I tried to login only with internal repo i.e. users.txt in jaas file and it worked fine :).

    Now when i have both LDAP and internal repository its not working.

    LDAP setting could be worng you think ?


    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #webMethods


  • 23.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 09:47 AM

    I believe you are missing the semi-colon after the LDAP login module definition - you should put it after the last property of the module configuration.

    Stefan


    #webMethods
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB


  • 24.  RE: Password Validation while login to Enterprise manager

    Posted 06/16/16 10:00 AM

    Hi Stefan,

    My Jaas looks like below now. I have added ; and also added use password in quotes “”. I am able to login only with internal repository and not able to login with LDAP credentials.

    UM {
    com.softwareag.security.sin.is.ldap.lm.LDAPLoginModule sufficient
    url=“ldap://xx.yy.com:389”
    prin=“uid=aa,ou=ServiceAccounts,ou=Global,o=yy.com
    cred=“user!”
    userrootdn=“o=yy.com
    uidprop=“CN”
    grouprootdn=“cn=integration,cn=usergroups,ou=security,ou=global,o=yy.com
    groupobjclass=“group”
    personobjclass=“person”
    logLevel=debug;

    com.softwareag.security.jaas.login.internal.InternalLoginModule sufficient
    template_section=INTERNAL
    logCallback=true
    internalRepository=“path/UniversalMessaging/server/um_01/bin/users.txt”;

    };

    Thank you so much for being with me while fixing this.


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 25.  RE: Password Validation while login to Enterprise manager

    Posted 06/17/16 05:40 AM

    Hello Kavitha,

    can you upload the UMRealmService.log file - it should be in the UM server bin directory. The system output and error streams are redirected to that file, and that is where the LDAP login module should be dumping the debug log. We should be able to see what’s going wrong there.

    Btw, since I saw you have also specified the group root DN, I thought I should let you know that UM currently does not retrieve (or care about) the LDAP group membership - you’d still need to define groups in the ACL lists for authorization purposes.

    Stefan


    #webMethods
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB


  • 26.  RE: Password Validation while login to Enterprise manager

    Posted 06/17/16 06:24 AM

    Hello Stefan,

    I was about to mail you the good news. After i made changes as you said, i was still getting invalid user credentials.

    I checked with my LDAP team if i was able to connect to LDAP server and they said yes.

    Later i got my settings verified with them, there was a mistake in groupobjclass and personobjclass and uidprop.

    After all the changes, it is working fine as expected.

    When same user id is present in both LDAP and users.txt it validates for LDAP credentials only. This is my observation.

    But everything is fine now :slight_smile:

    I sincerely appreciate your time and patience and all your suggestions.

    Many many thanks to you.

    Regards,
    Kavitha


    #Universal-Messaging-Broker
    #webMethods
    #Integration-Server-and-ESB


  • 27.  RE: Password Validation while login to Enterprise manager

    Posted 06/17/16 12:49 PM

    Cool, great news!

    For future reference, here’s a link to the JAAS configuration docs in the Oracle’s tech guide → JAAS Login Configuration File and the more comprehensive apidocs → Configuration (Java Platform SE 8 )
    According to the docs the “sufficient” flag means:

    The LoginModule is not required to succeed. If it does succeed, control immediately returns to the application (authentication does not proceed down the LoginModule list). If it fails, authentication continues down the LoginModule list.

    which is why if LDAP succeeds, you don’t go through the users.txt login at all - it’s a sort of a fall back mechanism in case you want to be able to log in even when LDAP is not reachable.

    Cheers,
    Stefan


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 28.  RE: Password Validation while login to Enterprise manager

    Posted 06/21/16 03:57 AM

    That is useful.

    Thanks once again Stefan.

    Regards,
    Kavitha


    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #webMethods