maguro 2005/03/13 21:12:46
Modified: modules/core/src/java/org/openejb/corba/security
ServerSecurityInterceptor.java
Log:
Added distinguished names to roles.
Revision Changes Path
1.5 +12 -2
openejb/modules/core/src/java/org/openejb/corba/security/ServerSecurityInterceptor.java
Index: ServerSecurityInterceptor.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/security/ServerSecurityInterceptor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ServerSecurityInterceptor.java 12 Mar 2005 17:04:54 -0000 1.4
+++ ServerSecurityInterceptor.java 14 Mar 2005 02:12:46 -0000 1.5
@@ -159,6 +159,16 @@
}
public void send_exception(ServerRequestInfo ri) {
+ try {
+ Any subjectAny = ri.get_slot(slotId);
+// Subject identity = (Subject) subjectAny.extract_Value();
+ Subject identity = SubjectManager.clearSubject(ri.request_id());
+
+ if (identity != null) ContextManager.unregisterSubject(identity);
+ } catch (InvalidSlot is) {
+ log.error("InvalidSlot thrown", is);
+ throw new INTERNAL("InvalidSlot thrown: " + is);
+ }
}
public void send_other(ServerRequestInfo ri) {