JBoss Community

Re: Custom jdbc login module for remoting

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

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

Start a new discussion in JBoss AS 7 Development at Community