php-general | 2000071
Date: 07/01/00
- Next message: Matt McClanahan: "Re: [PHP] Hello List,"
- Previous message: Richard Lynch: "[PHP] Re: [PHP-GENERAL] Passing Array to Function ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <39588B5D.8A7B10DB <email protected>>, inmaer <email protected> (Ermelindo
Mauriello) wrote:
> I've wrote an application using mod_auth_ldap for authentication with
> apache.
>
> I need to put a Logout button to exit from the application and return to
> a
> non-protected index file.
>
> I've done something like that:
> <?
> if ($REMOTE_USER==$user) {
> Header( "WWW-authenticate: basic realm=\"S.C.T.R. -
> Utente\"");
> Header("HTTP/1.0 401 Unauthorized");
> ?><script language="javascript">document.location='../';
I could be totally off-base here, but I don't think you can have
mod_auth_ldap and PHP both sending these authentication headers... It's
like trying to mix-and-match who's doing what, and it probably will fail.
If you're using mod_auth_ldap, you'll have to configure mod_auth_ldap to
do what you want...
You could convert to have PHP handling all the authentication and querying
the LDAP server...
(Assuming you are using PHP as Module, and not as CGI -- PHP as CGI can't
do authentication internally.)
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Matt McClanahan: "Re: [PHP] Hello List,"
- Previous message: Richard Lynch: "[PHP] Re: [PHP-GENERAL] Passing Array to Function ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

