Re: [PHP] getting authentication information from apache

2007-02-28 Thread Jochem Maas
Ryan wrote: > Richard et al., > > You are right, the variable was not being provided for the apache > server. Essentially I found the answer here > > http://httpd.apache.org/docs/1.3/misc/FAQ-F.html#remote-user-var > > The document has to be protected in order for apache create the > REMOTE_

Re: [PHP] getting authentication information from apache

2007-02-27 Thread Ryan
Richard et al., You are right, the variable was not being provided for the apache server. Essentially I found the answer here http://httpd.apache.org/docs/1.3/misc/FAQ-F.html#remote-user-var The document has to be protected in order for apache create the REMOTE_USER variable. This was an ap

Re: [PHP] getting authentication information from apache

2007-02-27 Thread Richard Lynch
Use and see what *IS* there. If what you want isn't there, then the web server didn't provide it. If the web server didn't provide it, PHP can't be blamed for not passing it on to you, which is *ALL* PHP does here. So what you have is a web-server configuration issue in that case. On Mon, Feb

Re: [PHP] getting authentication information from apache

2007-02-26 Thread Ryan
Tried that ($PHP_AUTH_USER) and it is also empty. On 2/24/07, dave <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 try echo $PHP_AUTH_USER; Ryan wrote: > Richard, > > I looked at phpinfo() as you said, same thing... > > _SERVER["REMOTE_USER"]no value > > You may be

Re: [PHP] getting authentication information from apache

2007-02-24 Thread dave
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 try echo $PHP_AUTH_USER; Ryan wrote: > Richard, > > I looked at phpinfo() as you said, same thing... > > _SERVER["REMOTE_USER"]no value > > You may be right, this may not be available, but I don't want to keep > throwing a login screen in front

Re: [PHP] getting authentication information from apache

2007-02-23 Thread Ryan
Richard, I looked at phpinfo() as you said, same thing... _SERVER["REMOTE_USER"]no value You may be right, this may not be available, but I don't want to keep throwing a login screen in front of users for no apparent reason. Thanks, Ryan On 2/23/07, Richard Lynch <[EMAIL PROTECTED]

Re: [PHP] getting authentication information from apache

2007-02-23 Thread Richard Lynch
On Wed, February 21, 2007 1:01 pm, Ryan wrote: > I'm new to php and I have am running php on apache. I already have > ldap > authentication set up in apache would rather not create a separate > system > for php. What would be ideal would be to get the current authenticated > user > from the apache

Re: [PHP] getting authentication information from apache

2007-02-23 Thread Ryan
Jochem, Hmm, not sure what I'm looking for, but from what I've read, the REMOTE_USER should contain this informaion, mine seems to be empty. array(30) { . . . ["REMOTE_USER"]=> string(0) "" . . Thanks, Ryan On 2/23/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Ryan wrote: > Hello, > >

Re: [PHP] getting authentication information from apache

2007-02-23 Thread Ryan
Jochem, Hmm, not sure what I'm looking for, but from what I've read, the REMOTE_USER should contain this informaion, mine seems to be empty. array(30) { . . . ["REMOTE_USER"]=> string(0) "" . . Thanks, Ryan On 2/23/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Ryan wrote: > Hell

Re: [PHP] getting authentication information from apache

2007-02-23 Thread Jochem Maas
Ryan wrote: > Hello, > > I'm new to php and I have am running php on apache. I already have ldap > authentication set up in apache would rather not create a separate system > for php. What would be ideal would be to get the current authenticated user > from the apache environment. At this point I'