Add in not yet working auth_verify

This commit is contained in:
Miles Lott 2001-08-18 20:37:33 +00:00
parent c7edc28716
commit dc7ad12eeb
2 changed files with 34 additions and 0 deletions

View File

@ -90,4 +90,26 @@
$r = CreateObject('phpgwapi.soapmsg','system_authResponse',$rtrn);
return $r;
}
function _soap_auth_verify($m1,$m2,$m3)
{
$server_name = $m1;
$sessionid = $m2;
$kp3 = $m3;
$verified = $GLOBALS['phpgw']->session->verify_server($sessionid,$kp3);
if($verified)
{
$rtrn = array(
CreateObject('phpgwapi.xmlrpcval','HELO','string',$sessionid)
);
}
else
{
$rtrn = array(CreateObject('phpgwapi.soapval','GOAWAY','string','XOXO'));
}
$r = CreateObject('phpgwapi.soapmsg','system_auth_verifyResponse',$rtrn);
return $r;
}
?>

View File

@ -118,4 +118,16 @@
{
return $timeInstant;
}
$server->add_to_map(
'system_auth',
array('string','string','string'),
array('array')
);
$server->add_to_map(
'system_auth_verify',
array('string','string','string'),
array('array')
);
?>