1 Reply Latest reply on Feb 27, 2018 12:14 AM by Prateek Malhotra

    Kerberos authentication with solace

    Prateek Malhotra Newbie

      We are using Jboss 6 to deploy MDB.

      We have configured Solace as a JMS provider and used the org.jboss.genericjms:main to connect to it.

       

      W e are unable to connect to Solace via kerberos authentication and getting the below error.

       

      Caused by: javax.naming.NamingException: JNDI lookup failed - Error performing login to LoginContext (unable to find LoginModule class: com.sun.security.auth.module.Krb5LoginModule from [Module "org.jboss.genericjms:main" from local module loader @7382f612 (finder: local module finder

              at com.solacesystems.jndi.SolJNDIInitialContextFactory$SolJNDIInitialContextImpl.lookup(SolJNDIInitialContextFactory.java:222) [sol-jms-7.1.2.248.jar:]

              at javax.naming.InitialContext.lookup(InitialContext.java:417) [rt.jar:1.8.0_121]

              at javax.naming.InitialContext.lookup(InitialContext.java:417) [rt.jar:1.8.0_121]

              at javax.naming.InitialContext.lookup(InitialContext.java:417) [rt.jar:1.8.0_121]

        • 1. Re: Kerberos authentication with solace
          Prateek Malhotra Newbie

          I have created a custom module org.jboss.genericjms which is unable to load the class com.sun.security.auth.module.Krb5LoginModule even after adding module sun.jdk as dependency.

           

          Caused by: javax.naming.NamingException: JNDI lookup failed - Error performing login to LoginContext (unable to find LoginModule class: com.sun.security.auth.module.Krb5LoginModule from [Module "org.jboss.genericjms:main" from local module loader

           

          The sun.jdk module has a reference to the "com/sun/security/auth/module” which the org.jboss.genericjms is looking for.

           

          Moreover I am not sure why  ../modules/system/layers/base/com/sun/security/auth/login does not exist?

           

          jar tf /usr/java/jdk1.8.0_121/jre/lib/rt.jar | grep Krb5LoginModule

          com/sun/security/auth/module/Krb5LoginModule$1.class

          com/sun/security/auth/module/Krb5LoginModule.class

           

           

          <module xmlns="urn:jboss:module:1.1" name="org.jboss.genericjms.provider">

          <resources>

          <resource-root path="remoteJMSObjectFactory.jar"/>

          <resource-root path="commons-lang-2.5.jar" />

          <resource-root path="commons-logging-1.1.1.jar" />

          <resource-root path="sol-jms-7.1.2.248.jar"/>

          <resource-root path="sol-jcsmp-7.1.2.248.jar"/>

          <resource-root path="sol-common-7.1.2.248.jar"/>

          <resource-root path="sol-jms-10.0.0.jar"/>

          <resource-root path="tibjms-4.4.3.jar"/>

          <resource-root path="tibcrypt-6.3.0.jar"/>

          </resources>

          <dependencies>

          <module name="javax.api"/>

          <module name="javax.transaction.api"/>

          <module name="javax.resource.api"/>

          <module name="javax.jms.api"/>

          <module name="sun.jdk"/>

          </dependencies>

          </module>

           

          .../servers/Instance-name/modules/system/layers/base

           

          <module xmlns="urn:jboss:module:1.1" name="sun.jdk">

          <resources>

          <!-- currently jboss modules has not way of importing services from

          classes.jar so we duplicate them here -->

          <resource-root path="service-loader-resources"/>

          </resources>

          <dependencies>

          <system export="true">

          <paths>

          <path name="com/sun/script/javascript"/>

          <path name="jdk/nashorn/api/scripting"/>

          <path name="com/sun/image/codec/jpeg"/>

          <path name="com/sun/imageio/plugins/bmp"/>

          <path name="com/sun/imageio/plugins/common"/>

          <path name="com/sun/imageio/plugins/gif"/>

          <path name="com/sun/imageio/plugins/jpeg"/>

          <path name="com/sun/imageio/plugins/png"/>

          <path name="com/sun/imageio/plugins/wbmp"/>

          <path name="com/sun/imageio/spi"/>

          <path name="com/sun/imageio/stream"/>

          <path name="com/sun/jndi/dns"/>

          <path name="com/sun/jndi/ldap"/>

          <path name="com/sun/jndi/url"/>

          <path name="com/sun/jndi/url/corbaname"/>

          <path name="com/sun/jndi/url/dns"/>

          <path name="com/sun/jndi/url/iiop"/>

          <path name="com/sun/jndi/url/iiopname"/>

          <path name="com/sun/jndi/url/ldap"/>

          <path name="com/sun/jndi/url/ldaps"/>

          <path name="com/sun/jndi/url/rmi"/>

          <path name="com/sun/crypto/provider"/>

          <path name="com/sun/org/apache/xml/internal/security/transforms/implementations"/>

          <path name="com/sun/rowset"/>

          <path name="com/sun/rowset/providers"/>

          <path name="com/sun/security/auth"/>

          <path name="com/sun/security/auth/login"/>

          <path name="com/sun/security/auth/module"/>

          <path name="com/sun/security/jgss"/>

          <path name="sun/awt"/>

          <path name="sun/awt/color"/>

          <path name="sun/awt/datatransfer"/>

          <path name="sun/awt/dnd"/>

          <path name="sun/awt/event"/>

          <path name="sun/awt/geom"/>

          <path name="sun/awt/im"/>

          <path name="sun/awt/image"/>

          <path name="sun/awt/image/codec"/>

          <path name="sun/awt/motif"/>

          <path name="sun/awt/resources"/>

          <path name="sun/awt/shell"/>

          <path name="sun/awt/util"/>

          <path name="sun/awt/windows"/>

          <path name="sun/awt/X11"/>

          <path name="sun/print"/>

          <path name="sun/print/resources"/>

          <path name="sun/security/action"/>

          <path name="sun/security/pkcs"/>

          <path name="sun/security/x509"/>

          <path name="sun/jdbc/odbc"/>

          <path name="sun/jdbc/odbc/ee"/>

          <path name="sun/invoke"/>

          <path name="sun/font"/>

          <path name="sun/misc"/>

          <path name="sun/io"/>

          <path name="sun/nio"/>

          <path name="sun/nio/ch"/>

          <path name="sun/nio/cs"/>

          <path name="sun/nio/cs/ext"/>

          <path name="sun/security"/>

          <path name="sun/security/util"/>

          <path name="sun/security/krb5"/>

          <path name="sun/util"/>

          <path name="sun/util/calendar"/>

          <path name="sun/util/locale"/>

          <path name="sun/util/resources"/>

          <path name="sun/security/pkcs11"/>

          <path name="sun/security/provider"/>

          <path name="sun/text"/>

          <path name="META-INF/services"/>

          </paths>

          <exports>

          <include-set>

          <path name="META-INF/services"/>

          </include-set>

          </exports>

          </system>

          </dependencies>

          </modu