|
Folks: Does anyone have experience using ProfileTokenCredential on V5R1? As I understand the concept, the ProfileTokenCredential should allow me to get authenticated on a system using a connection ... pass the credential object to another application (via RMI, say) that uses the credential object to establish a separate connection and can operate as the originally authenticated user. What I need to be able to do is, assuming a user is authenticated to the AS400 in another JVM, pass some kind of authentication token to a server via RMI so that the server can perform operations on the same host under the users credentials. My code is something like this ... On the client: After establishing a connection with a AS400 object, I do ... ProfileTokenCredential pt = as400.getProfileToken(); I then pass the object pt to my other application via RMI. On the server: I establish a new AS400 object, with the passed in profile token object, by doing ... AS400 as400 = new AS400(systemName, profileToken); I then proceed to try and invoke a command with ... CommandCall cc = new CommandCall(as400); cc.run("addlible devdmgwrk"); At which point I get the following exceptions ... Fri Dec 08 12:23:02 CST 2006 Start server failed with return code: 00 01 00 0A java.lang.Throwable at com.ibm.as400.access.Trace.log(Trace.java:1062) at com.ibm.as400.access.Trace.log(Trace.java:984) at com.ibm.as400.access.AS400ImplRemote.getConnection(AS400ImplRemote.java:1059) at com.ibm.as400.access.RemoteCommandImplRemote.open(RemoteCommandImplRemote.java:139) at com.ibm.as400.access.RemoteCommandImplRemote.runCommand(RemoteCommandImplRemote.java:184) at com.ibm.as400.access.CommandCall.run(CommandCall.java:579) at com.ibm.as400.access.CommandCall.run(CommandCall.java:610) at <my code> Fri Dec 08 12:23:02 CST 2006 Establishing connection failed: com.ibm.as400.access.ServerStartupException: Error in request data. at com.ibm.as400.access.AS400ImplRemote.returnSecurityException(AS400ImplRemote.java:1381) at com.ibm.as400.access.AS400ImplRemote.getConnection(AS400ImplRemote.java:1060) at com.ibm.as400.access.RemoteCommandImplRemote.open(RemoteCommandImplRemote.java:139) at com.ibm.as400.access.RemoteCommandImplRemote.runCommand(RemoteCommandImplRemote.java:184) at com.ibm.as400.access.CommandCall.run(CommandCall.java:579) at com.ibm.as400.access.CommandCall.run(CommandCall.java:610) at <my code> Any suggestions? Is ProfileTokenCredential not going to do what I need? Thanks! david
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.