[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PHP and http auth



-----BEGIN PGP SIGNED MESSAGE-----


Ugh, no wonder why it won't work!  It never worked in the first place,
since Micah never got the user authentication to work.

I've created a "connect2.php3" which uses the mod_perl http auth method to
get the user handle (stored in $handle).  This should be usable for
everyone out there.  Please play with it (bad pun, I know) and let me
know.

I'm not going to try to figure out what Micah was trying to do with
useredit.php3- he's got a lot of logic that I have no idea for what the
purpose is; not to mention the syntax problems.  Micah should be able to
pick up from here and finish the form.

Hence, I'm going to try to figure out the lousy Apache core dump issue
again.  Worst case I compile Apache on my home system and upload the
source and do a make install.

- -- 
Aaron Turner           | Either which way, one half dozen or another. 
aturner@pobox.com      | Check out the Red Hat Linux User's FAQ Online!
www.pobox.com/~aturner | http://www.pobox.com/~aturner/RedHat-FAQ/
All emails from this account are PGP signed.  Lack of a signature is "bad".
PGP Key fingerprint = FB E1 CE ED 57 E4 AB 80  59 6E 60 BF 45 1B 20 E8


On Thu, 15 Apr 1999, Aaron D. Turner wrote:

> 
> Whelp, I figured out how to get the authenticated user handle in PHP when
> using mod_perl authentication.  The following magic gets it done in PHP:
> 
> $user = getenv("REMOTE_USER");
> 
> I'm trying to port Micah's scripts over to use this, instead of using PHP
> logic to query the DB to do the http auth, but to be honest I'm kinda lost
> trying to decode some of Micah's code.  (For some reason the same syntax
> doesn't always work when I try it ;-)  
> 
> Anyways, now that we know it will work, I'm going to try to figure the
> rest of it out.  If someone who's more PHP knoweldgeable wants to take
> over, by all means let me know.  
> 
> Poor Micah isn't going to recognise his scripts when he gets back. :-)
> 
> 
> -- 
> Aaron Turner           | Either which way, one half dozen or another. 
> aturner@pobox.com      | Check out the Red Hat Linux User's FAQ Online!
> www.pobox.com/~aturner | http://www.pobox.com/~aturner/RedHat-FAQ/
> All emails from this account are PGP signed.  Lack of a signature is "bad".
> PGP Key fingerprint = FB E1 CE ED 57 E4 AB 80  59 6E 60 BF 45 1B 20 E8
> 
> 
> 


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNxbdnjM3jpXy1kJtAQHWEQQAjH4wZ3PE4BeeQk0LQopbPW7JctgZpcDp
d1ZoxpsN+WoK5ylPa/COey61YlGPSbBjWsMhLHB6vBn56ilj0zwOAl5m3iYSKAqT
bqeFOsWbd/7YTNV85bFWHpIt5/NuOX4xULZh1S7D+vHevHhVwHBw3LXG/fjTUOkF
B3PiWWcKXt8=
=UHQY
-----END PGP SIGNATURE-----