[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 08:10:19 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/717975#717975

--------------------------------------------------------------
> Darran Lofthouse wrote:
> 
> Yes your module is getting called but you just have a random username and password as you have disbled any security checks on the incomming connection.


I've updated the standalone.xml file to use a realm for remoting like this:

[...]

 <security-realms>
            <security-realm name="ManagementRealm">
                <authentication>
                    <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
            </security-realm>
            <security-realm name="ApplicationRealm">
                <authentication>
                    <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
            </security-realm>
            <security-realm name="MyAppRealm">
                <authentication>
                    <jaas name="asf-jaas"/>
                </authentication>
            </security-realm>
        </security-realms>

[...]

<subsystem xmlns="urn:jboss:domain:remoting:1.1">
            <connector name="remoting-connector" socket-binding="remoting" security-realm="MyAppRealm"/>
        </subsystem>

[...]
 <security-domains>
                <security-domain name="asf-jaas" cache-type="default">
                    <authentication>
                        <login-module code="com.asf.security.server.jaas.JdbcLoginModule" flag="required">
                            <module-option name="debug" value="true"/>
                        </login-module>
                    </authentication>
                </security-domain>
            </security-domains>


but now the login module is not getting called.
Am I missing any other configuration ?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/717975#717975]

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/0f3981d2/attachment.html 


More information about the jboss-dev-forums mailing list