Hi 

Im trying to automate job creation from Jenkins using powershell and using 
BASIC authentication. This works if i use AD auth with "logged in users can 
do anything " option enable. We had to switch to matrix based security and 
the BASIC auth no loger works. script below, does anyone know what is the 
authorixation header that we should set for below request? Any thoughts 
will be really helpful 


$http_request = New-Object -ComObject Msxml2.XMLHTTP 
        $http_request.open('POST', $url, $false, $username , $password )   
  
        $http_request.setRequestHeader("Authorization","BASIC 
$encodedPassword" ) 
        $http_request.setRequestHeader("ACCEPT", "application/xml")     
        #$http_request.setRequestHeader("Content-length", $content.length) 
        $auth_header = "BASIC $encodedPassword" 
        $http_request.setRequestHeader("Connection", "close") 
        $http_request.send($content)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/03c948ff-55dd-4ceb-b398-4bba6ca6e75c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to