[solved] API fails to authenticate using LDAP#562
|
|
Hello, We’re using LDAP authentication, which works like a charm. The API however does not seem to work with it, I always get Incorrect username or password.
|
|
|
Have you turned on basic authentication? If not, check the section labeled ‘Getting Started – Turning on basic authentication’ http://studios.thoughtworks.com/mingle/2.0/help/mingle_api.html |
|
|
Thanks, that did the trick. |
|
|
Awesome. Just moving this to the new API forum… |
|
|
The api states it only supports basic authentication and you have to turn it on. We’re running in using LDAP authentication so is there a way to do mixed? Are we not going to be able to use the API if we have LDAP authentication turned on and have to let users manage passwords? |
|
|
Bil – They work fine together. The ‘Basic’ refers to Basic HTTP Authentication and not basic Mingle authentication. In other words, you need to send along the username and password in the headers. If LDAP is turned on, you can send along the LDAP username and password. And this will work over whatever transport you are using, HTTP or HTTPS. |
|
|
I’ve got basic authentication turned on but not getting the api to work correctly (using the browser or .NET) in my environment (or any environment for that matter). I’ve gone in and turned on debugging in the logfile. Here’s the dump in the log file for a request (projectname.xml). Any ideas based on this information why I can’t get this to work: Rails final load path: . 2008-05-05 09:21:12,563 [/] Using data directory C:\Documents and Settings\simserb\Mingle 2008-05-05 09:21:12,578 [/] Runtime 1 loaded 2008-05-05 09:21:13,219 [/] [4;35;1mSQL (0.006004)[0m [0mSELECT version FROM schema_info[0m Rails final load path: . 2008-05-05 09:21:25,500 [/] Using data directory C:\Documents and Settings\simserb\Mingle 2008-05-05 09:21:25,500 [/] Runtime 2 loaded 2008-05-05 09:21:42,751 [/] [4;36;1mSQL (0.006809)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m 2008-05-05 09:21:42,766 [/] [4;35;1mSQL (0.003501)[0m [0mSELECT version FROM schema_info[0m 2008-05-05 09:21:42,798 [/] [4;36;1mSQL (0.002532)[0m [0;1mSELECT count() AS count_all FROM users [0m 2008-05-05 09:21:42,813 [/] [4;35;1mLicense Load (0.001908)[0m [0mSELECT * FROM licenses LIMIT 1[0m 2008-05-05 09:21:42,813 [/] [4;36;1mSQL (0.003764)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m 2008-05-05 09:21:42,813 [/] [4;35;1mSQL (0.002580)[0m [0mSELECT version FROM schema_info[0m 2008-05-05 09:21:42,829 [/] [4;36;1mUser Load (0.002008)[0m [0;1mSELECT * FROM users WHERE (admin = 1) ORDER BY id asc LIMIT 1[0m 2008-05-05 09:21:42,829 [/] [4;35;1mProject Load (0.003567)[0m [0mSELECT * FROM projects WHERE (hidden = 0 AND (template = 0 OR template IS NULL)) [0m 2008-05-05 09:21:42,860 [/] [4;36;1mSQL (0.012717)[0m [0;1mSELECT count() AS count_all FROM users [0m 2008-05-05 09:21:42,860 [/] [4;35;1mLicense Load (0.001164)[0m [0mSELECT * FROM licenses LIMIT 1[0m 2008-05-05 09:21:42,876 [/] [4;36;1mUser Load (0.000149)[0m [0;1mSELECT * FROM users WHERE (admin = 1) ORDER BY id asc LIMIT 1[0m 2008-05-05 09:21:42,891 [/] [4;35;1mComputeAggregateRequest Load (0.000712)[0m [0mSELECT * FROM compute_aggregate_requests ORDER BY id ASC LIMIT 50[0m 2008-05-05 09:21:42,938 [/] [4;36;1mSubversionConfiguration Load (0.000800)[0m [0;1mSELECT * FROM subversion_configurations WHERE (project_id = 27 AND (marked_for_deletion = 0 OR marked_for_deletion IS NULL)) [0m 2008-05-05 09:21:42,954 [/] [4;35;1mSubversionConfiguration Load (0.000977)[0m [0mSELECT * FROM subversion_configurations WHERE (project_id = 27 AND (marked_for_deletion = 0 OR marked_for_deletion IS NULL)) [0m 2008-05-05 09:21:45,423 [/] loading from application: application_helper 2008-05-05 09:21:45,454 [/] loading from application: asynch_requests_helper 2008-05-05 09:21:45,470 [/] loading from application: sidebar_tabs_helper 2008-05-05 09:21:45,470 [/] loading from application: property_editor_helper 2008-05-05 09:21:45,501 [/] loading from application: browser_detect_helper 2008-05-05 09:21:45,532 [/] loading from application: projects_controller 2008-05-05 09:21:45,548 [/] loading from application: projects_helper 2008-05-05 09:21:45,563 [/] loading from application: feed_helper Processing ProjectsController#show_info (for 127.0.0.1 at 2008-05-05 09:21:45) [GET] 2008-05-05 09:21:45,579 [/] Session ID: bef561deebb8291ad886635099b0156b 2008-05-05 09:21:45,579 [/] Parameters: {“controller”=>”projects”, “action”=>”show_info”, “project_id”=>”test”, “format”=>”xml”} 2008-05-05 09:21:45,579 [/] [4;35;1mSQL (0.001118)[0m [0mSELECT version FROM schema_info[0m 2008-05-05 09:21:45,595 [/] [4;36;1mSQL (0.001225)[0m [0;1mSELECT count() AS count_all FROM users [0m 2008-05-05 09:21:45,595 [/] [4;35;1mLicense Load (0.000840)[0m [0mSELECT * FROM licenses LIMIT 1[0m 2008-05-05 09:21:45,626 [/] [4;36;1mLicense Load (0.001020)[0m [0;1mSELECT * FROM licenses LIMIT 1[0m 2008-05-05 09:21:46,001 [/] [4;35;1mUser Load (0.003486)[0m [0mSELECT * FROM users [0m 2008-05-05 09:21:46,016 [/] [4;36;1mUser Load (0.002876)[0m [0;1mSELECT * FROM users [0m 2008-05-05 09:21:46,032 [/] [4;35;1mUser Load (0.003721)[0m [0mSELECT * FROM users [0m 2008-05-05 09:21:46,048 [/] Filter chain halted as [#<actioncontroller::filters::classmethods::symbolfilter:0x8f6be6>] returned false. 2008-05-05 09:21:46,048 [/] Completed in 0.46427 (2 reqs/sec) | Rendering: 0.00038 (0%) | DB: 0.07668 (16%) | 401 Unauthorized [http://localhost/projects/test.xml] 2008-05-05 09:21:47,641 [/] [4;36;1mSQL (0.002475)[0m [0;1mSELECT version FROM schema_info[0m 2008-05-05 09:21:47,641 [/] [4;35;1mSQL (0.001014)[0m [0mSELECT count() AS count_all FROM users [0m 2008-05-05 09:21:47,657 [/] [4;36;1mLicense Load (0.000903)[0m [0;1mSELECT * FROM licenses LIMIT 1[0m 2008-05-05 09:21:47,657 [/] [4;35;1mUser Load (0.001075)[0m [0mSELECT * FROM users WHERE (admin = 1) ORDER BY id asc LIMIT 1[0m 2008-05-05 09:21:47,673 [/] [4;36;1mSQL (0.001024)[0m [0;1mSELECT count(*) AS count_all FROM card_importing_previews WHERE (status = ‘queued’) [0m |
|
|
Is this resolved yet? We can’t seem to get it to work anymore.. it worked in mingle 1.1. |
