Keith Davis commented on Bug JENKINS-24958

I just realized that the submitter was Jenkins Python API. I'm using a PHP and cURL. Seems like the same issue though. Basic same setup as Felix.

<?php
	$curl = curl_init("http://jenkinserver/job/myjob/config.xml");

	curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
	curl_setopt($curl, CURLOPT_USERPWD, "username:apiToken");
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

	$sOutput = curl_exec($curl);

	echo $sOutput ?: curl_error($curl);

	curl_close($curl);
?>

How is Active Directory configured?

Not sure what you mean by this question. I thought there was not configuration for this machine, since it is joined to a domain.

What version of the plugin are you using?

1.39

(Are both instances using the same plugin version? What happens when you configure the older Jenkins version to use Active Directory?)

Both instances of what?

In the affected instance, are you able to use the CLI (with authentication)?

Don't know how to do this.

The XML/JSON API (using e.g. curl)?

Yes - Change the URL to http://jenkinserver/job/myjob/api/json, same effect.

The Web UI?

Not sure how to do this correctly, but tried with Chrome and got redirected to the Login page.

What is shown on the /whoAmI web page?

How do I do that for this process?

Configure a log recorder with logger hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider on level FINE. What gets logged around the time the error occurs?

Can you tell me how to do that?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to