OTDS -> Content Server Automated testing using 3rd party
Hello,
I'm trying to build an automated test script (using Visual Studio / .NET) and I'm having some trouble authenticating (capturing and passing the OTDS ticket) to Content Server.
I currently call otds:8080/otdsws/login and capture the OTDSTicket from the Set-Cookie response.
I then pass the OTDSTicket as (the only) form value to /otcs/llisapi.dll. I was hoping to get an LL-Cookie in the response but instead I'm getting "Error validating a ticket [OTDS -1073741823]".
I was hoping to get some guidance around my issue - thanks in advance!
J.F. Larente
Comments
-
Poke?
0 -
Are you passing the 'RFA' query parameter to /otdsws/login ? When you log in to Content Server normally through a browser, you will see that there is an 'RFA' query parameter containing the CS resource ID and return URL within it.
Otherwise, check otds.log when you get the error - there could be a stack trace with more info.Another approach to programmatically obtain an LLCookie is through web services.
You can add a web service reference in visual studio to otds:8080/ot-authws/services/Authentication?wsdl.
You can call Authenticate() with username and password or AuthenticateCurrentUser() to do IWA (SSO with Kerberos).
You then pass the OTDS ticket you get back to Content Web Services' ValidateUser() method in the CWS Authentication web service (/cws/services/Authentication?wsdl). This will exchange the OTDS ticket for an LLCookie.0 -
Thanks VERY much for your response.
I've used option 2 which is call OTDS / CWS to get an LLCookie. When I call /otcs/llisapi.dll with LLCookie in the header it still tries to redirect to OTDS. Are there other parameters I'm missing? I tried passing LLCookie both in the Header and in a form post.
Header:
Referrer: http://ecm/otcs/llisapi.dll?func=llworkspace
LLCookie: ...
querystring: func=llworkspaceThanks!
0 -
LLCookie is a cookie, so it needs to be sent as part of the 'Cookie' header.
Cookie: LLCookie=0 -
Awesome thanks!
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 150 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories