Resource Oriented Work Item API with LDAP
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
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
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.