0 Replies Latest reply on Jul 2, 2009 2:34 PM by Laurent Dubois

    bindCredential encryption issue on JBoss 5.0.1

    Laurent Dubois Newbie

      Hello,

      Running into an issue with encrypted bindCredential in a LdapExtLoginModule login module, which is working fine using JBoss 4.2.3 (encryption setup done according to the instructions found here: http://www.jboss.org/community/wiki/LdapExtLoginModuleWithJaasSecurityDomain)

      the following error shows up in the server logs. Any ideas of what could be wrong?

      thanks in advance


      2009-07-02 10:18:00,968 DEBUG [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-1) Bad password for username=xxxxx
      java.security.NoSuchAlgorithmException: No transformation given
      at javax.crypto.Cipher.a(Unknown Source)
      at javax.crypto.Cipher.b(Unknown Source)
      at javax.crypto.Cipher.getInstance(Unknown Source)
      at org.jboss.security.auth.spi.DecodeAction.decode(DecodeAction.java:89)
      at org.jboss.security.auth.spi.DecodeAction.decode64(DecodeAction.java:72)
      at org.jboss.security.auth.spi.DecodeAction.run(DecodeAction.java:62)
      at java.security.AccessController.doPrivileged(AccessController.java:246)
      at org.jboss.security.auth.spi.DecodeAction.decode(DecodeAction.java:102)
      at org.jboss.security.auth.spi.LdapExtLoginModule.createLdapInitContext(LdapExtLoginModule.java:326)
      at org.jboss.security.auth.spi.LdapExtLoginModule.validatePassword(LdapExtLoginModule.java:276)
      at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:210)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:618)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:795)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:209)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:709)
      at java.security.AccessController.doPrivileged(AccessController.java:246)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:706)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:603)
      at org.jboss.security.plugins.auth.JaasSecurityManagerBase.defaultLogin(JaasSecurityManagerBase.java:552)
      at org.jboss.security.plugins.auth.JaasSecurityManagerBase.authenticate(JaasSecurityManagerBase.java:486)
      at org.jboss.security.plugins.auth.JaasSecurityManagerBase.isValid(JaasSecurityManagerBase.java:365)
      at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:160)
      at org.jboss.security.javaee.EJBAuthenticationHelper.isValid(EJBAuthenticationHelper.java:87)
      at org.jboss.ejb.plugins.SecurityActions$13.run(SecurityActions.java:543)
      at org.jboss.ejb.plugins.SecurityActions$13.run(SecurityActions.java:541)
      at java.security.AccessController.doPrivileged(AccessController.java:197)
      at org.jboss.ejb.plugins.SecurityActions.isValid(SecurityActions.java:539)
      at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityContext(SecurityInterceptor.java:314)
      at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:243)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205)
      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:136)
      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:88)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
      at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639)
      at org.jboss.ejb.Container.invoke(Container.java:1046)
      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:362)
      at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)