[geeklog-cvs] Auth_Enterprise test.php,1.3,1.4
tony at iowaoutdoors.org
tony at iowaoutdoors.org
Sat Jun 19 16:43:48 EDT 2004
Update of /var/cvs/Auth_Enterprise
In directory www:/tmp/cvs-serv17811
Modified Files:
test.php
Log Message:
Added setGroups()
Index: test.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/test.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test.php 17 Jun 2004 05:38:30 -0000 1.3
--- test.php 19 Jun 2004 20:43:46 -0000 1.4
***************
*** 1,3 ****
--- 1,4 ----
<?php
+
/*
require_once 'PEAR/PackageFileManager.php';
***************
*** 45,56 ****
require_once 'Auth_Enterprise/Client/AEClient.class.php';
! $clientOptions = array('appId'=>'TEST_PEAR_DB_APP');
//$clientOptions = array('appId'=>'Auth_Enterprise');
! $client = new AEClient(AE_LOCALHOST_CLIENT, $clientOptions);
//$userObj = $client->authenticate('root at localhost','foo');
$userObj = $client->authenticate('webmaster at localhost','foo2');
! echo $userObj->resetPassword();
exit;
//print_r($userObj); exit;
$privArray = $userObj->getUserGroupsByAdmin('root at localhost' );
--- 46,61 ----
require_once 'Auth_Enterprise/Client/AEClient.class.php';
! //$clientOptions = array('appId'=>'TEST_PEAR_DB_APP');
//$clientOptions = array('appId'=>'Auth_Enterprise');
! //$client = new AEClient(AE_LOCALHOST_CLIENT, $clientOptions);
!
! $clientOptions = array('appId'=>'TEST_PEAR_DB_APP','server'=>'localhost','path'=>'/Auth_Enterprise/rpctest.php','port'=>11111);
! $client = new AEClient(AE_XMLRPC_CLIENT, $clientOptions);
//$userObj = $client->authenticate('root at localhost','foo');
$userObj = $client->authenticate('webmaster at localhost','foo2');
! print_r($userObj);
exit;
+
//print_r($userObj); exit;
$privArray = $userObj->getUserGroupsByAdmin('root at localhost' );
More information about the geeklog-cvs
mailing list