deploy\jbossweb-tomcat50.sar\server.xml was missing:
<Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm"
certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping" />
on the linux box, no idea what this does but fixed the problem
Nathan Coast wrote:
Hi,
When I attempt to login to a webapp on a windows jboss 'acl-login' is passed to XMLLoginConfigImpl to lookup the application policy (OK). on linux jboss is passing 'jboss.web' (Not OK). details below:
afaict the two environments are the same (except One is windows, one is linux) same jre, same jboss (4.0.0) same mysql (4.1.8).
I have configured them both the same with the same login-config.xml snip
<application-policy name = "acl-login"> <authentication> <login-module code = "com.codeczar.jaas.JaasEjbLoginModule" flag = "required"> </login-module> </authentication> </application-policy>
I have enabled trace for: org.jboss.security.auth.login.XMLLoginConfigImpl
the app policy is loaded in both windows and linux, I know this as I get the following message in both environments:
10:57:40,561 TRACE [XMLLoginConfigImpl] Parsing application-policy=acl-login
I have the same webapp deployed in both environments with the following jboss-web.xml
<jboss-web> <security-domain>java:/jaas/acl-login</security-domain> <context-root>/tomcat/acl</context-root> </jboss-web>
(linux is deployed as a war, windows in expanded dir format)
when I attempt to access the windows environment I get the following log message:
[XMLLoginConfigImpl] Begin getAppConfigurationEntry(acl-login), size=11
[XMLLoginConfigImpl] End getAppConfigurationEntry(acl-login), authInfo=AppConfigurationEntry[]:
On linux I get the following
[XMLLoginConfigImpl] Begin getAppConfigurationEntry(jboss.web), size=11
[XMLLoginConfigImpl] getAppConfigurationEntry(jboss.web), no entry in appConfigs, tyring parentCont: null
[XMLLoginConfigImpl] getAppConfigurationEntry(jboss.web), no entry in parentConfig, trying: other
[XMLLoginConfigImpl] End getAppConfigurationEntry(jboss.web), authInfo=AppConfigurationEntry[]:
so when I login on windows jboss is passing 'acl-login' to lookup the application policy (OK) on linux jboss is passing 'jboss.web' (Not OK).
I have no idea why this is happening, any help greatly appreciated
cheers Nathan
-- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834 8733 fax : (852) 2834 8755 web : http://www.codeczar.com
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
