From dc7ad12eeba24a9bcb75a5833c9e7e8bd2fff536 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 18 Aug 2001 20:37:33 +0000 Subject: [PATCH] Add in not yet working auth_verify --- phpgwapi/inc/soap_functions.inc.php | 22 ++++++++++++++++++++++ phpgwapi/inc/soaplib.soapinterop.php | 12 ++++++++++++ 2 files changed, 34 insertions(+) diff --git a/phpgwapi/inc/soap_functions.inc.php b/phpgwapi/inc/soap_functions.inc.php index 684e7e54b8..aa66c604bd 100644 --- a/phpgwapi/inc/soap_functions.inc.php +++ b/phpgwapi/inc/soap_functions.inc.php @@ -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; + } ?> diff --git a/phpgwapi/inc/soaplib.soapinterop.php b/phpgwapi/inc/soaplib.soapinterop.php index f1f8d1ef8f..8a821f8b40 100644 --- a/phpgwapi/inc/soaplib.soapinterop.php +++ b/phpgwapi/inc/soaplib.soapinterop.php @@ -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') + ); ?>