Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
TeamSite 6.7 - getClientForTrustedUser fails
Bill Klish
TeamSite 6.7
Windows 2003 Enterprise Edition - local users only, no AD
I am unable to get a CSClient using the getClientForTrustedUser method on an upgraded TeamSite 6.7 server from 6.5 SP2. I had only a few users created before and some example content. I ran through the install without any issues and ran iwaccessmigrate after rebooting.
When I run the following code, I get a CSAuthenticationException with a message of Authentication Error for this code:
factory.getClientForTrustedUser( userId, null, Locale.getDefault(), "", null );
Output:
--------------------------
Setting System property for Factory initialization with userId teamsite65\dummy
Property com.interwoven.cssdk.factory.CSFactory set to com.interwoven.cssdk.factory.CSLocalFactory
Factory object obtained as version Version: 2.1.0
------
com.interwoven.cssdk.access.CSAuthenticationException: (Authentication error)
at com.interwoven.cssdk.common.jni.CSOtherJNIServer.beginSessionForTrustedUser(Native Method)
at com.interwoven.cssdk.factory.CSLocalFactory.getClientForTrustedUser(CSLocalFactory.java:128)
at Tester.main(Tester.java:26)
------
If I switch this to either of these lines, everything works:
factory.getClient( userId, null, "password", Locale.getDefault(), "", null );
factory.getClientForCurrentUser( Locale.getDefault(), "", null );
However, the second line doesn't get the correct user, that second parameter is the application context name, which isn't what we are looking for.
I have tried removing the user and adding them back in the admin gui, but that didn't help. I added a new user to the server as well, but that didn't work either.
I tried updating the cssdk.cfg file and switching allowLocalMode to true, but that gave some very strange exceptions when trying to get the CSLocalFactory object with a getFiles method in the WorkflowServices adapter.
What am I missing? Is this method no longer supported in TS 6.7?
Find more posts tagged with
Comments
Bill Klish
Anyone have this working?
Bill Klish
finally got an answer on this.
You need to look in the cs sdk docs found in iw-home/cssdk/docs (stupid that I didn't think of this...
)
You need to set the following property either inside your java code, or in a properties file:
Property Name: cssdk.ssl.key.location
Value:
/servletd/conf/ssl_cert
I am not a big fan of having to hard code a platform specific path in for this. It would have been better for Interwoven to take care of this for us, but we will work around setting the path correctly.