Re: [ANNOUNCEMENT] LiveUser-0.16.8 (beta) Released.
| From: | Lukas Smith | Date: | Thu, 22 Dec 2005 14:28:32 +0000 |
| Subject: | Re: [ANNOUNCEMENT] LiveUser-0.16.8 (beta) Released. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-40830@lists.php.net to get a copy of this message | ||
Jeroen Houben wrote:
Lukas Smith wrote:Hmm .. well .. there is a wierd if in that there could lead to not having the auth_user_id set. But I think this is just theoretical since that if should always pass:Jeroen Houben wrote:Okay so Auth now usues actual values passed to $lu->init($username,$pwd)I just upgraded and I can no longer login, I get an unknown error (-6)Well that is because init() has changed drastically .. thats also mentioned in the changelog. You now need to call login() and friends yourself. The examples have been changed accordingly as well.I've got the login working now, but checkRight() is not working. It used to work fine. I tracked the problem down to a call inside login(): if (!$perm->mapUser($auth->getProperty('auth_user_id'), $containerName)) { $auth->getProperty('auth_user_id') returns NULL. Is this a configuration error?
if (!isset($this->tables['users']['fields']['auth_user_id'])) {
$this->propertyValues['auth_user_id'] = $this->pearAuth->getUsername();
}
now the real question is why does the mapUser() call fail?
since PEAR::Auth does not provide a user id we are using the username. I think is the way things were in the last release as well .. but maybe there is something there?
is there an entry with the username and the container name in the liveuser_perm_users table?
also you may want to open a bug report in this ..
regards,
Lukas