Curl Global Community
Curl a ldap authenticated website - Printable Version

+- Curl Global Community (
+-- Forum: Discussions (
+--- Forum: General Curl questions (
+--- Thread: Curl a ldap authenticated website (/showthread.php?tid=857)

Curl a ldap authenticated website - ddeguzman - 03-02-2013


I want to use curl to get information from an ldap authenticated website.

We run RT (request tracker) and I am trying to extract ticket information using rt's REST protocol:

If I open up RT as normal (with ldap authentication), I can open another browser window and run the REST command successfully.

But these all fail ("RT/3.8.8 401 Credentials required") when running from a command line

curl -u user:pass


How do I get curl to ldap authenticate before making the web call? (The basic authentication doesn't work).

Help! - Dan