Using JDK 1.4.1_01, jboss-3.0.4_tomca-tomcat-4.1.2 on Linux.
I'm trying to clear from the authentication cache JUST a single user.
Invoking flushAuthenticationCache(String) on the mbean works fine, but
it flushes *all* users' security infos.
I want to call the CachePolicy's remove(Principal) method, so I tried
looking up the CachePolicy in JNDI and calling it. Though I found a
TimedCachePolicy in jndi under java:/timedCacheFactory/docs (docs is our
app's security name), and called the remove(Principal) method
successfully, it doesn't seem to do anything.
Then, I tried extending JaasSecurityManagerService, configuring the use
of my class in jboss-service.xml. I see it in the JMX-Console, but for
some reason my added method isn't showing up there (under list mbean
operations), and I don't know how to register an MBean interface to
expose it.
Please help. Again, my end goal is to flush the authentication cache
for just a single user. Unfortunately, there's not a public, exposed
method in the JaasSecurityManagerService that does this.
Also, below is some output from the jmx console JNDIView.
- What's up with the "Failed to lookup: timedCacheFactory?"
- When I looked up the timedCacheFactory, it's actually a $Proxy class
(EJB?)
- java:jaas/docs says it's a SecurityDomainContext below, but when I
look it up in code, I get a ClassCastException saying it's *really* a
JaasSecurityManager! Why the descrepency? If it *was* actually a
SecurityDomainContext, I could call
sdc.getAuthenticationCache().remove(new SimplePrincipal("username"))!
Thanks again,
David
java: Namespace
+- DefaultDS (class:
org.jboss.resource.adapter.jdbc.local.LocalDataSource)
+- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
+- SecurityProxyFactory (class:
org.jboss.security.SubjectSecurityProxyFactory)
+- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider)
+- CounterService (class: org.jboss.varia.counter.CounterService)
+- comp (class: javax.naming.Context)
+- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
+- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
+- jaas (class: javax.naming.Context)
| +- JmsXARealm (class:
org.jboss.security.plugins.SecurityDomainContext)
| +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
| +- docs (class: org.jboss.security.plugins.SecurityDomainContext)
+- timedCacheFactory (class: javax.naming.Context)
Failed to lookup: timedCacheFactory, errmsg=null
+- TransactionPropagationContextExporter (class:
org.jboss.tm.TransactionPropagationContextFactory)
+- Mail (class: javax.mail.Session)
+- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
+- TransactionPropagationContextImporter (class:
org.jboss.tm.TransactionPropagationContextImporter)
+- DocsDS (class: org.jboss.resource.adapter.jdbc.local.LocalDataSource)
+- TransactionManager (class: org.jboss.tm.TxManager)
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
- [JBoss-user] Re: help clearing a single user from ... David Ward
- [JBoss-user] Re: help clearing a single user ... David Ward
- Re: [JBoss-user] help clearing a single user ... Meyer-Willner, Bernhard
- Re: [JBoss-user] help clearing a single u... David Ward
- Re: [JBoss-user] help clearing a sing... Scott M Stark
- Re: [JBoss-user] help clearing a ... David Ward
- Re: [JBoss-user] help clearing a single user ... Meyer-Willner, Bernhard
- Re: [JBoss-user] help clearing a single u... David Ward