mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Undo oops in session->verify_server() and make soap auth/verify work
This commit is contained in:
parent
dc7ad12eeb
commit
b2ef2fb0e5
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user