RE: [PEAR] Pear Auth Class (Newbie)
| From: | Simon H | Date: | Sat, 08 Dec 2001 14:12:14 +0000 |
| Subject: | RE: [PEAR] Pear Auth Class (Newbie) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-585@lists.php.net to get a copy of this message | ||
Thanks Martin
I used phpMyAdmin to MD5 the password and it worked....exxxxxxcellent. Now
I'll try and get the permissions bit you sent me to work. I'll let you know
how I get on. I'd think this would be a useful feature to add to Pear Auth
maybe.
Glad to hear you party too and not just code all the time...keep it up!
Simon H
-----Original Message-----
From: Martin Jansen [mailto:mail@martin-jansen.de]
Sent: 08 December 2001 14:07
To: Simon Hamilton
Cc: pear-general@lists.php.net
Subject: Re: [PEAR] Pear Auth Class (Newbie)
On Sat, 8 Dec 2001 11:42:58 -0000, Simon Hamilton wrote:
>One issue I have is that your getting the file info from
>$HTTP_SERVER_VARS['PHP_SELF'] as a column header. I would most likely
prefer
>to hard code a variable/pageID into each content page, where $pageID =
>"ColumnName" in Permissions table. This way I can safely use a database
>driven website. Would there be any problems with this method you could
>foresee?
Nope, I don't see a problem here.
>Currently I'm having trouble just getting Auth to work, before I even try
to
>get your hack in there. For some reason (I'm running Win2k/Apache/PHP/MySQL
>BTW), the database call will only work when I set the DSN to user=root with
>no password. I have setup other users WITH passwords in the USERS table of
>the MySQL DB, but they just don't work. Do you know if there's anything
else
>I need to do to MySQL to get other users to work?
Did you restart your MySQL server after adding the users?
>Now, even tho I can make the call with the DB "root" user, I'm not getting
>access...keep getting "Wrong login data!" above the login fields in the
>form, and I know its right. Have you any ideas why this problem would occur
>(I know its a bit vague). The only thing I can think of is maybe the use of
>crypt/MD5.
You have to use md5() to "crypt" the passwords that are stored in
the auth table. Did you do so?
>BTW, I replied to your email privately first, but have had no reply as
>yet....maybe its not the done thing!
Well, actually I was out for party 'til this morning and so I did not
have the time to reply to your mail ;-).
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/