Re: Re: Auth_HTTP, it's not authenticating...
| From: | Eric \"e-dawg\" Johnston | Date: | Mon, 28 Jul 2003 21:51:03 +0000 |
| Subject: | Re: Re: Auth_HTTP, it's not authenticating... | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6880@lists.php.net to get a copy of this message | ||
In general, I've found that 90+% of HTTP Authentication problems are
client-side. Especially with IE (I don't know if you're using IE or
not). However, the fact it won't authenticate the page to begin with
indicates that it is a server-side problem.
Just a random thought: I see a glaring error in your example, but I
assume you did it right and that the text above the example is wrong.
Are the field names correct in the code? (I see 'password' for the
password field name in the text and 'pword' in the example code.)
--
Eric
On Mon, 2003-07-28 at 14:41, Stan Lemon wrote:
> Yeah, but I can't figure out why, which is the wierd part. I wrote a
> generic HTTP authentication script and didn't have a problem, and I've
> been inside out on Auth and cn't see why it isn't working. Driving me
> up the wall though.
>
> - Stan
>
> Eric "E-Dawg" Johnston wrote:
>
> > Then I'd assume it's not authenticating. I haven't had reason to use
> > the package yet, but I have some experience with weird HTTP
> > authentication problems and I figured I'd rule a common one out.
> >
> > On Mon, 2003-07-28 at 14:33, Stan Lemon wrote:
> >
> >>I have no idea if it authenticates... that's basically the problem,
> >>when I go to my file I get he prompt, and then I type in a username/pw
> >>and I get in again, and again, and again...
> >>
> >>- Stan
> >>
> >>Eric "E-Dawg" Johnston wrote:
> >>
> >>>Prompting on each page hit, but it authenticates for that specific page?
> >>>
> >>>On Mon, 2003-07-28 at 13:28, Stan Lemon wrote:
> >>>
> >>>
> >>>>Ok, I know I am connected now. :-) I was able to add a user.
> >>>>
> >>>>Still not autheticating though, it keeps prompting, and prompting.
> >>>>
> >>>>Stan Lemon wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Ok, I tried using addUser() and it didn't work either.
> >>>>>
> >>>>>So I am guessing that I did something wrong in connected. Can anyone
> >>>>>help me figure out why I am not connected? Thanks.
> >>>>>
> >>>>>- Stan
> >>>>>
> >>>>>Stan Lemon wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>I am trying to use Auth_HTTP to authenticate a user before accessing
> >>>>>>content. I have a table in the db called scl_users with uid
> >>>>>>(varchar(32)) and password (varchar(32)). I use the following code:
> >>>>>>
> >>>>>><?php
> >>>>>>
> >>>>>>//print md5("password");
> >>>>>>//require_once "DB.php";
> >>>>>>require_once "Auth_HTTP/Auth_HTTP.php";
> >>>>>>
> >>>>>>$dsn = "mysql://....";
> >>>>>>
> >>>>>>$options = array('table' => 'scl_users',
> >>>>>> 'usernamecol' => 'uid',
> >>>>>> 'passwordcol' => 'pword',
> >>>>>>// 'cryptType' => 'md5',
> >>>>>> 'dns' => $dsn,);
> >>>>>>
> >>>>>>
> >>>>>>$auth = new Auth_HTTP("DB",$options,true);
> >>>>>>
> >>>>>>$auth->start();
> >>>>>>
> >>>>>>
> >>>>>>if ($auth->getAuth()) {
> >>>>>> print "Hello World";
> >>>>>>}
> >>>>>>
> >>>>>>?>
> >>>>>>
> >>>>>>It prompts me and prompt me, and prompts me more... Am I doing
> >>>>>>something wrong? I printed my password out using md5 and dumped that
> >>>>>>in the db with my username.
> >>>>>>
> >>>>>>I have no idea how to retriece errors or anything.
> >>>>>>
> >>>>>>If anyone could help me it'd be greatly appreciated. Thanks.
> >>>>>>
> >>>>>>- Stan
> >>>>>>
> >>>>>
> >
>