djencks 2005/06/08 03:05:55
Modified: modules/core/src/java/org/openejb/corba/security/config/tss
TSSGSSUPMechConfig.java
Log:
use the server side subject, not the client side subject
Revision Changes Path
1.5 +3 -2
openejb/modules/core/src/java/org/openejb/corba/security/config/tss/TSSGSSUPMechConfig.java
Index: TSSGSSUPMechConfig.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/security/config/tss/TSSGSSUPMechConfig.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TSSGSSUPMechConfig.java 23 Apr 2005 18:44:29 -0000 1.4
+++ TSSGSSUPMechConfig.java 8 Jun 2005 07:05:54 -0000 1.5
@@ -61,6 +61,7 @@
import org.omg.IOP.Codec;
import org.apache.geronimo.security.jaas.UsernamePasswordCallback;
+import org.apache.geronimo.security.ContextManager;
import org.openejb.corba.security.SASException;
import org.openejb.corba.util.Util;
@@ -136,7 +137,7 @@
new
UsernamePasswordCallback(new String(token.username, "UTF8"),
new String(token.password, "UTF8").toCharArray()));
context.login();
- result = context.getSubject();
+ result =
ContextManager.getServerSideSubject(context.getSubject());
}
} catch (UnsupportedEncodingException e) {
throw new SASException(1, e);