Re: [LiveUser] adding user to permission container only

From: Date: Sun, 05 Mar 2006 08:46:46 +0000
Subject: Re: [LiveUser] adding user to permission container only
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23222@lists.php.net to get a copy of this message
Christian Balzer wrote:
I've got a question concerning the feature of LiveUser that it should be possible to use existing tables for authentication. I'm using a table with many users in which username - password combinations are stored. Mapping LiveUser to the right entries was no problem - authentication is working fine.
great :-)
But I don't know how I can add user rights to this users. How can i add a user to the permissions container that is already stored in the authentication container? If I try the ::addUser method, LieveUser tries to add the user to both containers and gives an error message.
You would need to use the addUser() method in the perm container. $data = array( 'auth_user_id' => $auth_user_id, // the unique user id in the given auth container 'auth_container_name' => $auth_container_name, // this is the key in the authContainers configuration array for the container that stores the given user 'type' => LIVEUSER_USER_TYPE_ID // optional or some other type id ); $perm_user_id = $LUA->perm->addUser(); regards, Lukas

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