Re: Auth

From: Date: Wed, 22 Mar 2006 15:45:16 +0000
Subject: Re: Auth
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23390@lists.php.net to get a copy of this message
On 3/22/06, Frank Høvin <hvifra@nith.no> wrote: > > Hello, > > looks like your posts come through > > Yah - when I registered a new e-mail address. From my old one, none of > the messages I send to the list appear at the list, for reason. I can > see other peoples messages, though. Oh, well. > > > Auth is used successfully by many installations. > > Your way of telling "it does not work" helps nobody starting by yourself. > > Yes, that's blindness as you say :) > > Did you look in the delivered pear/doc/Auth or pear/test/Auth ? > > I was happy with > > > > http://pear.php.net/manual/en/package.authentication.auth.php myself > > True - not expecting too much from that poor description :-) > > Well: What I do, is I make a database called auth, with a table called > auth - as described in the first basic example in the documentation > (PEAR website). Of course, I change all the variables according to my > database (host, dbname, table, username, password, username-column, > password-column etc.). Then I try to run the example. And I'm not able > to get "auth-ed". I can't see any reason why there should be anything > that's possible to miss. As I said in another message, I've also tried > this example: http://circle.ch/blog/p566.html > > The problem here is the same - I follow the exact instructions, but > it's not "working". Regards, You need to tell us more. This is the same thing you said before. What does your table look like? Are you making your password plaintext, md5, crypt, other? What does you configuration look like? Likely either your database connection is failing, you've misnamed something, or you set the wrong password type. Start by adding a callback error handler for PEAR errors which outputs the error. -- Justin Patrin

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