[geeklog-cvs] Auth_Enterprise test.php,1.1.1.1,1.2
tony at iowaoutdoors.org
tony at iowaoutdoors.org
Wed Jun 16 01:26:57 EDT 2004
Update of /var/cvs/Auth_Enterprise
In directory www:/tmp/cvs-serv26763
Modified Files:
test.php
Log Message:
minor changes.
Index: test.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/test.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** test.php 15 Jun 2004 15:19:27 -0000 1.1.1.1
--- test.php 16 Jun 2004 05:26:55 -0000 1.2
***************
*** 9,20 ****
//$userObj = $client->authenticate('root at localhost','foo');
$userObj = $client->authenticate('webmaster at localhost','foo2');
! require_once 'Auth_Enterprise/Common/AEPrivilege.class.php';
! $priv = new AEPrivilege('foo', 'Foo watu doin');
! $userObj->setUserPrivilegesByAdmin('root', array($priv));
//$client->createAccountByAdmin('webmaster at localhost','foo2','tmpAcct','tmpPass');
//$client->changePassword('tmpAcct','tmpPass');
//$userObj->changePassword('foo123456');
! print 'user = '; print_r($userObj);
//print_r($client);
--- 9,24 ----
//$userObj = $client->authenticate('root at localhost','foo');
$userObj = $client->authenticate('webmaster at localhost','foo2');
! //print_r($userObj); exit;
! $privArray = $userObj->getUserGroupsByAdmin('root at localhost' );
! print_r($privArray); exit;
!
! //require_once 'Auth_Enterprise/Common/AEPrivilege.class.php';
! //$priv = new AEPrivilege('foo', 'Foo watu doin');
! //$userObj->setUserPrivilegesByAdmin('root at localhost', array($priv));
//$client->createAccountByAdmin('webmaster at localhost','foo2','tmpAcct','tmpPass');
//$client->changePassword('tmpAcct','tmpPass');
//$userObj->changePassword('foo123456');
! //print 'user = '; print_r($userObj);
//print_r($client);
More information about the geeklog-cvs
mailing list