0 Replies Latest reply on Dec 17, 2013 2:23 AM by shruti.misra

    JBOSS 6.1 configuration for Kerberos authentication

    shruti.misra

      Hi All

       

      Trying to integrate SharePoint with a java over Kerberos authentication. We have got JBOSS 6.1 AS. We are using Spnego libraries for doing Kerberos.

      We refered http://spnego.sourceforge.net/ for bulding java class. When we deploy our Java Application in jboss, we are getting the below exception.

       

      Failed to create LoginModule(com.sun.security.auth.module.Krb5LoginModule), msg=com.sun.security.auth.module.Krb5LoginModule cannot be cast to javax.security.auth.spi.LoginModule

       

       

      We have got the krb5.conf and login.conf files in the class path and they are reachable from our java class. And the Spnego libraries are also in the class path. Standalone.xml also has been modified to accomodate the spnego related stuffs.

       

      When the runtime tries to execute the below line, we are getting the above mentioned exception.

       

      SpnegoSOAPConnection con = new SpnegoSOAPConnection("spnego-client", "username", "password");

       

      Suggestions/Help anticipated.

       

      Thanks,

      Shruti