Ivan Xu wrote:
> 
> Sorry, I forgot to mention it in the last email, you might need to add a
> global gbean attribute for realm.
> <dep:attribute name="global">true</dep:attribute>
> 

Thanks again Ivan! This configuration file now works for G2.2.:

<dep:gbean name="MySecurityRealm"
                class="org.apache.geronimo.security.realm.GenericSecurityRealm"
                xsi:type="dep:gbeanType"
                xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
                <dep:attribute name="realmName">MySecurityRealm</dep:attribute>
                <dep:attribute name="global">true</dep:attribute>
                <dep:reference name="ServerInfo">
                        <dep:name>ServerInfo</dep:name>
                </dep:reference>
                <dep:xml-reference name="LoginModuleConfiguration">
                        <log:login-config
xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0";>
                                <log:login-module control-flag="REQUIRED"
                                        wrap-principals="false">
                                        <log:login-domain-name>
                                                MySecurityRealm
                                        </log:login-domain-name>
                                        <log:login-module-class>
                                                org.test.MyLoginModule
                                        </log:login-module-class>
                                </log:login-module>
                        </log:login-config>
                </dep:xml-reference>
        </dep:gbean>

-- Timo
-- 
View this message in context: 
http://apache-geronimo.328035.n3.nabble.com/issue-deploying-webapp-with-security-realm-tp334180p876453.html
Sent from the Users mailing list archive at Nabble.com.

Reply via email to