Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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!

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Jun 03 '13, 6:26 p.m.

Question was seen: 3,650 times

Last updated: Jun 04 '13, 4:25 a.m.

Confirmation Cancel Confirm