JBoss Community

Re: Custom jdbc login module for remoting

created by Daniel Jipa in JBoss AS 7 Development - View the full discussion

Hello,

 

I still received the same error when trying to connect remotely to Jboss:

 

 

09:41:04,584 TRACE [org.jboss.modules] (Remoting "danieljipa" task-3) Finding class com.mycompany.security.server.jaas.CustomLoginModule from Module "org.jboss.as.remoting:main" from
 local module loader @6fc5f743 (roots: /home/daniel/Servers/jboss-as-7.1.1.Final/modules)
09:41:04,585 TRACE [org.jboss.modules] (Remoting "danieljipa" task-3) Class com.mycompany.security.server.jaas.CustomLoginModule not found from Module "org.jboss.as.remoting:main" from local module loader @6fc5f743 (roots: /home/daniel/Servers/jboss-as-7.1.1.Final/modules)
09:41:04,586 TRACE [org.jboss.modules] (Remoting "danieljipa" task-3) Finding class com.mycompany.security.server.jaas.CustomLoginModule from Module "org.jboss.as.remoting:main" from local module loader @6fc5f743 (roots: /home/daniel/Servers/jboss-as-7.1.1.Final/modules)
09:41:04,586 TRACE [org.jboss.modules] (Remoting "danieljipa" task-3) Class com.mycompany.security.server.jaas.CustomLoginModule not found from Module "org.jboss.as.remoting:main" from local module loader @6fc5f743 (roots: /home/daniel/Servers/jboss-as-7.1.1.Final/modules)
09:41:04,587 TRACE [org.jboss.remoting.remote.server] (Remoting "danieljipa" task-3) Server sending authentication rejected (javax.security.sasl.SaslException: PLAIN password not verified by CallbackHandler)

 

 

My configuration looks like this:

 

 

<security-domain name="AsfJaas" cache-type="default">
                    <authentication>
                        <login-module code="com.mycompany.security.server.jaas.CustomLoginModule" flag="required" module="deployment.myear.ear.security-server-2.0-dev.jar">
                            <module-option name="debug" value="true"/>
                        </login-module>
                    </authentication>
                </security-domain>

 

When using form authentication from a web application bundled in the same ear login module works as expected.

Thanks

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community