Undo oops in session->verify_server() and make soap auth/verify work

This commit is contained in:
Miles Lott 2001-08-18 21:32:22 +00:00
parent dc7ad12eeb
commit b2ef2fb0e5
3 changed files with 19 additions and 15 deletions

View File

@ -228,9 +228,9 @@
if($r = $soap->send($soap_message,$method_name))
{
$this->debug('<hr>I got this value back<br><pre>' . htmlentities($r->serialize()) . '</pre><hr>',$debug);
/* _debug_array($soap); */
/* echo $soap->debug_str; */
return $r;
$v = $r->decode();
$this->result = $v['return'];
return $v;
}
else
{
@ -255,9 +255,9 @@
if($r = $soap->send($soap_message,$method_name))
{
$this->debug('<hr>I got this value back<br><pre>' . htmlentities($r->serialize()) . '</pre><hr>',$debug);
/* _debug_array($soap); */
/* echo $soap->debug_str; */
return $r;
$v = $r->decode();
$this->result = $v['return'];
return $v;
}
else
{

View File

@ -353,7 +353,7 @@
$phpgw_info['user']['account_id'] = $this->account_id;
//$this->read_repositories(@$phpgw_info['server']['cache_phpgw_info']);
$this->read_repositories(@$phpgw_info['server']['cache_phpgw_info']);
$phpgw_info['user'] = $this->user;
$phpgw_info['hooks'] = $this->hooks;

View File

@ -85,13 +85,15 @@
}
else
{
$rtrn = array(CreateObject('phpgwapi.soapval','GOAWAY','string','XOXO'));
$rtrn = array(
CreateObject('phpgwapi.soapval','GOAWAY','string','XOXO')
);
}
$r = CreateObject('phpgwapi.soapmsg','system_authResponse',$rtrn);
return $r;
//$r = CreateObject('phpgwapi.soapmsg','system_authResponse',$rtrn);
return $rtrn;
}
function _soap_auth_verify($m1,$m2,$m3)
function system_auth_verify($m1,$m2,$m3)
{
$server_name = $m1;
$sessionid = $m2;
@ -102,14 +104,16 @@
if($verified)
{
$rtrn = array(
CreateObject('phpgwapi.xmlrpcval','HELO','string',$sessionid)
CreateObject('phpgwapi.soapval','HELO','string',$sessionid)
);
}
else
{
$rtrn = array(CreateObject('phpgwapi.soapval','GOAWAY','string','XOXO'));
$rtrn = array(
CreateObject('phpgwapi.soapval','GOAWAY','string','XOXO')
);
}
$r = CreateObject('phpgwapi.soapmsg','system_auth_verifyResponse',$rtrn);
return $r;
//$r = CreateObject('phpgwapi.soapmsg','system_auth_verifyResponse',$rtrn);
return $rtrn;
}
?>