Re: liveuser: what's the best way to get the perm_user_id of the currentuser?

From: Date: Fri, 06 Jan 2006 10:46:08 +0000
Subject: Re: liveuser: what's the best way to get the perm_user_id of the currentuser?
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22456@lists.php.net to get a copy of this message
Lukas Smith wrote:
Jeroen Houben wrote:
Is there a way to detect through which auth container a user is authenticated? I would need to know this for both currently authenticated users and non-authenticated users.
$LU->getProperty('containerName');
Great.
for non authenticated users you would need to use LiveUser_Admin
Okay. I'm trying that now, but I get an error: #3 /usr/local/share/php/pear/PEAR/ErrorStack.php(629): PEAR_ErrorStack->push(-3, 'exception', Array, 'File for the cl...', false, Array) #4 /usr/local/share/php/pear/LiveUser.php(547): LiveUser_Admin->staticPush('LiveUser', -3, 'exception', Array, 'File for the cl...') #5 /usr/local/share/php/pear/LiveUser.php(569): LiveUser_Admin->loadClass('LiveUser_Admin_...') #6 /usr/local/share/php/pear/LiveUser/Admin.php(270): LiveUser_Admin->authFactory(Array, 'radius', 'LiveUser_Admin_') #7 /usr/local/share/php/pear/LiveUser/Admin.php(561): LiveUser_Admin->setAdminAuthContainer('radius') #8 /usr/local/share/php/pear/LiveUser/Admin.php(526): LiveUser_Admin->_getUsersByPerm(Array, true) Here's wat I'm trying to do: $lu_admin = LiveUser_Admin::factory($LUOptions); $lu_admin->setAdminPermContainer(); $user = $lu_admin->getUsers('perm', array("auth_user_id"=>'jeroen@terena.nl'), true); It looks like it's trying to include a non-existing file: LiveUser/Admin/Auth/PEARAuth.php Any ideas? Jeroen

« previous php.pear.general (#22456) next »