httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Burden" <...@burden.ca>
Subject Re: [users@httpd] How to make a login form [OT]
Date Thu, 14 Oct 2004 20:48:56 GMT
Yes, you can check the value of $_SERVER['PHP_AUTH_USER'] and
$_SERVER['PHP_AUTH_PW'] and use that to decide whether to send
authentication headers. It'll look just like regular HTTP auth, but you'll
need to do the actual authentication yourself, through a database or
whatever you like.
http://ca.php.net/manual/en/reserved.variables.php#reserved.variables.server
http://ca.php.net/manual/en/features.http-auth.php

Tim

----- Original Message ----- 
From: "Mark McCulligh" <mmcculli@visualtech.ca>
To: <users@httpd.apache.org>
Sent: Thursday, October 14, 2004 4:31 PM
Subject: Re: [users@httpd] How to make a login form [OT]


> Patrick Donker wrote:
>
> > Wagner, Aaron wrote:
> >
> >> there are a lot of Mod_auth_??? modules for just about any backend
> >> DB.  But they still use the login prompt window.  The only web page
> >> based auth is by using cookies on a custom written page.
> >>
> >> aaron
> >>
> >>> -----Original Message-----
> >>> From: Patrick Donker [mailto:list-account@webpagina.nu]
> >>> Sent: October 14, 2004 16:17
> >>> To: users@httpd.apache.org
> >>> Subject: Re: [users@httpd] How to make a login form [OT]
> >>>
> >>>
> >>> Joshua Slive wrote:
> >>>
> >>>
> >>>> On Thu, 14 Oct 2004 22:08:50 +0200, Patrick Donker
> >>>> <list-account@webpagina.nu> wrote:
> >>>>
> >>>>
> >>>>>> And, in fact, it is impossible to use a web form to get credentials
> >>>>>> for basic auth.  If you want to use a web form, you'll need
to role
> >>>>>> your own auth and sessions using, for example, cookies.
> >>>>>
> >>>>
> >>>>
> >>>>> Yes I know that a login prompt is generated automatically,
> >>>>
> >>>
> >>> but I want to
> >>>
> >>>>> do it from within my root index.html
> >>>>
> >>>>
> >>>>
> >>>> As I said, this is impossible with HTTP basic auth.
> >>>>
> >>>> Joshua.
> >>>
> >>>
> >>> And using mod_auth_digest?
> >>
> >
> > Ok then, any recources for simple scripts? I really want to stay with
> > .htaccess without the standard login popup...
> >
>
> You can build a custom login in PHP that works with HTTP basic auth. I
> have not done it yet myself as I do logins with a database, but know you
> can feed in authuser and authpassword to apache through PHP.  There use
> your .htaccess user file.
>
> Mark.
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message