[jboss-dev-forums] [JBoss AS 7 Development] - Re: Custom jdbc login module for remoting
Daniel Jipa
do-not-reply at jboss.com
Mon Feb 20 07:37:29 EST 2012
Daniel Jipa [https://community.jboss.org/people/danjee] created the discussion
"Re: Custom jdbc login module for remoting"
To view the discussion, visit: https://community.jboss.org/message/717954#717954
--------------------------------------------------------------
I managed to make my login module usable.
I've removed the realm restriction for remoting so no the line in standalone.xml is like this:
<connector name="remoting-connector" socket-binding="remoting" />
In the security domain the configuration is like this:
<security-domains>
<security-domain name="asf-jaas" cache-type="default">
<authentication-jaspi>
<login-module-stack name="asf-jaas-stack">
<login-module code="com.asf.security.server.jaas.LdapFallbackJdbcLoginModule" flag="required">
<module-option name="debug" value="true"/>
</login-module>
</login-module-stack>
<auth-module code="com.asf.security.server.jaas.JdbcLoginModule" login-module-stack-ref="asf-jaas-stack"/>
</authentication-jaspi>
</security-domain>
</security-domains>
And I think the biggest mistake I made was the jboss.xml file name which I renamed it jboss-app.xml to store my security-domain.
Now the validateUser method is getting called. I am now facing a new challange with the usernames and passwords because they are encrypted by JBoss.
Are they reversible ? Or should I alter my login module ?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717954#717954]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120220/819a984c/attachment.html
More information about the jboss-dev-forums
mailing list