provisoner icon indicating copy to clipboard operation
provisoner copied to clipboard

Apache base authentication

Open shamblett opened this issue 14 years ago • 0 comments

To allow authentication of sites that use password protected apache base auth Provisoner needs to be modified to send the correct auth headers :-

function curl_init(){ $this->_curlSession = curl_init(); curl_setopt($this->_curlSession, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ; curl_setopt($this->_curlSession, CURLOPT_USERPWD, "username:password"); }

Note: replace "username" and "password" in the function above with the appropriate values for your site.

Then search for "$this->_curlSession = curl_init();" and replace it with "$this->curl_init();"

Original reporter user Jayster

shamblett avatar Aug 12 '10 09:08 shamblett