This content has been marked as final.
Show 3 replies
-
1. Re: application-policy doesn't work - always default securit
starksm64 Jul 10, 2004 12:16 PM (in response to solso)The security-domain element syntax for the default security manager is "java:/jaas/" + jaas-login-config-name, so you need to use:
<security-domain>java:/jaas/TestSecDomain</security-domain>
-
2. Re: application-policy doesn't work - always default securit
solso Jul 12, 2004 9:45 AM (in response to solso)Hello Scott,
I already used the full JNDI name in the jboss-web.xml. Here is the code:
<jboss-web>
<security-domain>java:/jaas/TestSecDomain</security-domain>
<context-root>/</context-root>
<virtual-host>localhost</virtual-host>
</jboss-web>
The JBoss Server uses always the default application policy. What else can be wrong? Any other idea?
Thanks for your help!
Richard -
3. Re: application-policy doesn't work - always default securit
solso Jul 14, 2004 1:17 PM (in response to solso)Hello
I've solved the Problem. In my Servlet I call a custom class which performs a kerberos login. In this class I had to put the configuration name of the application policy. Then everything works fine.
See the code:String confname = "TestSecDomain"; beanCallbackHandler = new BeanCallbackHandler(kerbuser, kerbpass); peerLC = new LoginContext(confName, beanCallbackHandler); peerLC.login();