NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Negotiate Authentication nusoap.php


Joined: 03 Jan 2010
Posts: 1
Reply with quote
Hello everyone.
I'm using library nusoap as a web service connection to negotiate authentication and looking at the code nusoap.php file, I see that is not covered by this authentication, authentication is only provided for Basic, Digest, and Certificate.

The code includes the Basic Authentication seems easy:

if ($authtype == 'basic') {
$this->outgoing_headers[ 'Authorization'] = 'Basic'. base64_encode (str_replace (':','',$username ).':'.$password);
}


I am now looking to integrate authentication Negotiate, but do not really know how to do this at the moment I have implemented the following code:

else if ($authtype == 'negotiate') {
$this->outgoing_headers[ 'Authorization'] = 'Negotiate'. base64_encode ($username. ' '. $password);
}

but I get this error when running the web service call:

SoapClient: Error: HTTP Error: Unsupported HTTP response status 400 Bad Request (SoapClient-> response has contents of the response)

I add more details nusoap debug if someone can help me.

soap_transport_http: HTTP header: Authorization: Negotiate dXNlciB1c2Vy
soap_transport_http: HTTP header: Content-Length: 613
soap_transport_http: wrote data to socket, length = 863
soap_transport_http: read line of 26 bytes: HTTP/1.1 400 Bad Request

If anyone can help I would appreciate it. Thanks very much.
View user's profileFind all posts by escri2Send private messageMSN Messenger
Negotiate Authentication nusoap.php
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic