It's all about the answers!

Ask a question

Resource Oriented Work Item API with LDAP


John Paliotta (1111) | asked Jun 03 '13, 6:26 p.m.
 I am following the information here:
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2

On using JSON and POST to add "draft workitems" to RTC 4.0.1

This works perfectly on my test system, but on my customer's environment
I am having problems with authentication.

They are using LDAP for authentication.

On my simple system, the steps below work fine (this is from the web page referenced above)
On the customer system, I get an authentication problem

COOKIES=./cookies.txt
USER=username
PASSWORD=password
HOST="https://localhost:9443/ccm";

curl -k -c $COOKIES "$HOST/authenticated/identity"
curl -k -L -b $COOKIES -c $COOKIES -d j_username=$USER -d 
j_password=$PASSWORD "$HOST/authenticated/j_security_check"


When I run this command, I get an authrequired message
Note, that if I remove the "-b $COOKIES" I get the same message, so so there must
be something wrong with how I am building the cookies.txt file for their authentication scheme

Thanks!

One answer



permanent link
Stephane Leroy (1.4k149) | answered Jun 04 '13, 4:25 a.m.
JAZZ DEVELOPER
Hi John,

some more details on the HTTP error you get would certainly help.

In the meanwhile, could it be the case that your test environment uses WebSphere application server whereas customer environment uses Tomcat ? If this is the case, I'd suggest you have a look at this post :
https://jazz.net/forum/questions/17204/problem-using-curl-to-access-work-item-api

Regards,
Stéphane

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.