Hi,

We  have implemented Authentication and Authorization module for MB using
CAAS. When trying to invoke MB through a JMS client I'm getting the
exception in [1]. I have populated the sample data to the user store using
the script in [2]. I'm using username "admin" and password "admin" to
invoke this.

Any idea about this?

[1] WARN {org.wso2.andes.server.handler.ConnectionStartOkMethodHandler} -
Authentication attemp failed. org.wso2.carbon.security.caas.
api.exception.CarbonSecuri
tyServerException: 10001 - One or more credential stores produced errors
while authenticating.
        at org.wso2.carbon.security.caas.api.util.
CarbonSecurityExceptionUtil.buildLoginException(CarbonSecurityExceptionUtil.
java:55)
        at org.wso2.carbon.security.caas.api.module.
UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:122)
        at org.wso2.carbon.security.caas.boot.ProxyLoginModule.login(
ProxyLoginModule.java:91)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at javax.security.auth.login.LoginContext.invoke(
LoginContext.java:755)
        at javax.security.auth.login.LoginContext.access$000(
LoginContext.java:195)
        at javax.security.auth.login.LoginContext$4.run(
LoginContext.java:682)
        at javax.security.auth.login.LoginContext$4.run(
LoginContext.java:680)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(
LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(
LoginContext.java:587)
        at org.wso2.carbon.andes.core.security.AndesAuthenticationManager.
authenticate(AndesAuthenticationManager.java:75)
        at org.wso2.andes.amqp.AMQPAuthenticationManager.authenticate(
AMQPAuthenticationManager.java:65)
        at org.wso2.andes.server.handler.ConnectionStartOkMethodHandler
.methodReceived(ConnectionStartOkMethodHandler.java:59)
        at org.wso2.andes.server.handler.ServerMethodDispatcherImpl.
dispatchConnectionStartOk(ServerMethodDispatcherImpl.java:524)
        at org.wso2.andes.framing.amqp_0_91.ConnectionStartOkBodyImpl.
execute(ConnectionStartOkBodyImpl.java:143)
        at org.wso2.andes.server.state.AMQStateManager.methodReceived(
AMQStateManager.java:169)
        at org.wso2.andes.server.protocol.AMQProtocolEngine.
methodFrameReceived(AMQProtocolEngine.java:374)
        at org.wso2.andes.framing.AMQMethodBodyImpl.handle(
AMQMethodBodyImpl.java:92)
        at org.wso2.andes.server.protocol.AMQProtocolEngine.frameReceived(
AMQProtocolEngine.java:319)
        at org.wso2.andes.server.protocol.AMQProtocolEngine.
dataBlockReceived(AMQProtocolEngine.java:268)
        at org.wso2.andes.server.protocol.AMQProtocolEngine$1.
run(AMQProtocolEngine.java:237)
        at org.wso2.andes.pool.Job.processAll(Job.java:111)
        at org.wso2.andes.pool.Job.run(Job.java:158)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: 
org.wso2.carbon.security.caas.user.core.exception.AuthenticationFailure:
Invalid user credentials.
        at org.wso2.carbon.security.caas.user.core.store.
CredentialStoreImpl.authenticate(CredentialStoreImpl.java:112)
        at org.wso2.carbon.security.caas.api.module.
UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:119)
        ... 28 more
        Suppressed:
org.wso2.carbon.security.caas.user.core.exception.CredentialStoreException:
Unable to retrieve password information.
                at org.wso2.carbon.security.userstore.jdbc.connector.
JDBCCredentialStoreConnector.authenticate(JDBCCredentialStoreConnector.
java:119)
                at org.wso2.carbon.security.caas.user.core.store.
CredentialStoreImpl.authenticate(CredentialStoreImpl.java:117)
                ... 29 more

[2]
https://github.com/wso2-extensions/carbon-security-user-store-jdbc/blob/master/tests/osgi-tests/src/test/resources/h2_test_data.sql

Thanks,

-- 
Sajini De SIlva
Senior Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva

Phone: +94 712797729
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to