User: starksm
Date: 01/10/19 17:08:43
Modified: src/main/org/jboss/web Tag: Branch_2_4
AbstractWebContainer.java
Log:
Create a binding to the security-domain and subject in the web app ENC
Revision Changes Path
No revision
No revision
1.4.4.4 +6 -2 jboss/src/main/org/jboss/web/AbstractWebContainer.java
Index: AbstractWebContainer.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/web/AbstractWebContainer.java,v
retrieving revision 1.4.4.3
retrieving revision 1.4.4.4
diff -u -r1.4.4.3 -r1.4.4.4
--- AbstractWebContainer.java 2001/10/03 06:26:00 1.4.4.3
+++ AbstractWebContainer.java 2001/10/20 00:08:43 1.4.4.4
@@ -114,7 +114,7 @@
@see org.jboss.security.SecurityAssociation;
@author [EMAIL PROTECTED]
-@version $Revision: 1.4.4.3 $
+@version $Revision: 1.4.4.4 $
*/
public abstract class AbstractWebContainer extends ServiceMBeanSupport implements
AbstractWebContainerMBean
{
@@ -397,15 +397,19 @@
if( securityDomain == null )
{
category.debug("Binding security/securityMgr to NullSecurityManager");
- Object securityMgr = new NullSecurityManager(securityDomain);
+ Object securityMgr = new NullSecurityManager("java:/jaas/null");
Util.bind(envCtx, "security/securityMgr", securityMgr);
Util.bind(envCtx, "security/realmMapping", securityMgr);
+ Util.bind(envCtx, "security/security-domain", new
LinkRef("java:/jaas/null"));
+ Util.bind(envCtx, "security/subject", new
LinkRef("java:/jaas/null/subject"));
}
else
{
category.debug("Linking security/securityMgr to JNDI name:
"+securityDomain);
Util.bind(envCtx, "security/securityMgr", new LinkRef(securityDomain));
Util.bind(envCtx, "security/realmMapping", new LinkRef(securityDomain));
+ Util.bind(envCtx, "security/security-domain", new
LinkRef(securityDomain));
+ Util.bind(envCtx, "security/subject", new
LinkRef(securityDomain+"/subject"));
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development