Re: [PHP] PHP Authentication

2001-11-30 Thread EDUMEXICO

Hi, there is a module for apache that autorizes with mysql, the name of the module is: 
mod_auth_mysql-2.20, that way you can protect files/directories with the .htaccess 
method. Bye.

PD. The module is at: www.mysql.com

On Thu, Nov 29, 2001 at 08:59:05PM +, Hippie wrote:
 I'm attempting authorise users from a MySQL database. The idea being,
 that upon access to the page they input their username and password
 and this is checked against a table from an SQL database. This page
 needs to be completely server independant which means that I can't
 make use of the $PHP_AUTH_USER as this relies on IIS or Apache to know
 how to authorise to my knowledge.
 
 If anyone has any ideas on how to accomplish this I would be more than
 interested to hear of them. Also, failing this being possible if I can
 resort to checking it against Radius instead of SQL so any ideas on
 that would be great as well.
 
 Hippie.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Mauricio Téllez Jiménez
Seguimiento Técnico EDUMEXICO
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Zamora No. 25, Col. Centro
C.P. 91000, Xalapa, Ver.
Tel. 52(28)17-86-87, 17-73-80
Fax. 52(28)18-64-13



msg41657/pgp0.pgp
Description: PGP signature


Re: [PHP] PHP Authentication

2001-11-29 Thread David Robley

On Fri, 30 Nov 2001 07:29, Hippie wrote:
 I'm attempting authorise users from a MySQL database. The idea being,
 that upon access to the page they input their username and password
 and this is checked against a table from an SQL database. This page
 needs to be completely server independant which means that I can't
 make use of the $PHP_AUTH_USER as this relies on IIS or Apache to know
 how to authorise to my knowledge.

 If anyone has any ideas on how to accomplish this I would be more than
 interested to hear of them. Also, failing this being possible if I can
 resort to checking it against Radius instead of SQL so any ideas on
 that would be great as well.

 Hippie.

The concept is simple - query the database for a record where username = 
supplied value and password = supplied value: if you get a record 
returned, you have a match and they can enter; if not, they aren't 
allowed in. You may need to pass the authorisation aacross scripts - you 
could use a cookie, hidden field, sessions

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Useless Invention: Combs for bald-heads.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP Authentication

2001-11-29 Thread Hippie

On Fri, 30 Nov 2001 11:02:45 +1030, [EMAIL PROTECTED]
(David Robley) wrote:

On Fri, 30 Nov 2001 07:29, Hippie wrote:
 I'm attempting authorise users from a MySQL database. The idea being,
 that upon access to the page they input their username and password
 and this is checked against a table from an SQL database. This page
 needs to be completely server independant which means that I can't
 make use of the $PHP_AUTH_USER as this relies on IIS or Apache to know
 how to authorise to my knowledge.

 If anyone has any ideas on how to accomplish this I would be more than
 interested to hear of them. Also, failing this being possible if I can
 resort to checking it against Radius instead of SQL so any ideas on
 that would be great as well.

 Hippie.

The concept is simple - query the database for a record where username = 
supplied value and password = supplied value: if you get a record 
returned, you have a match and they can enter; if not, they aren't 
allowed in. You may need to pass the authorisation aacross scripts - you 
could use a cookie, hidden field, sessions

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Useless Invention: Combs for bald-heads.

The problem is though, getting their input into a variable with which
to query the SQL database. The querying itself I have no problems with
but I cannot figure out how to pass their input into a variable.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP Authentication

2001-11-29 Thread Martin Towell

use a standard form...
form method=post action=...
input type=text name=username
input type=password name=password
form

and in your php code, use, $username and $password

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Authentication


On Fri, 30 Nov 2001 11:02:45 +1030, [EMAIL PROTECTED]
(David Robley) wrote:

On Fri, 30 Nov 2001 07:29, Hippie wrote:
 I'm attempting authorise users from a MySQL database. The idea being,
 that upon access to the page they input their username and password
 and this is checked against a table from an SQL database. This page
 needs to be completely server independant which means that I can't
 make use of the $PHP_AUTH_USER as this relies on IIS or Apache to know
 how to authorise to my knowledge.

 If anyone has any ideas on how to accomplish this I would be more than
 interested to hear of them. Also, failing this being possible if I can
 resort to checking it against Radius instead of SQL so any ideas on
 that would be great as well.

 Hippie.

The concept is simple - query the database for a record where username = 
supplied value and password = supplied value: if you get a record 
returned, you have a match and they can enter; if not, they aren't 
allowed in. You may need to pass the authorisation aacross scripts - you 
could use a cookie, hidden field, sessions

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Useless Invention: Combs for bald-heads.

The problem is though, getting their input into a variable with which
to query the SQL database. The querying itself I have no problems with
but I cannot figure out how to pass their input into a variable.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



Re: [PHP] php authentication system

2001-08-10 Thread pierre-yves

http://www.phpbuilder.com/columns/tim2505.php3
py
- Original Message -
From: Andras Kende [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 10, 2001 6:44 AM
Subject: [PHP] php authentication system


 Hello,

 I need to password protect some webpages right now its passwords
 everywhere

 Probably need some cookie based php authentication system where users
login
 once 
 Where can I find a simple but good script??

 Thanks :)
 Andras



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP Authentication

2001-03-26 Thread Patrick


- Original Message -
From: "Jon" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 26, 2001 1:38 AM
Subject: [PHP] PHP Authentication


 Hi,

 I have read that for using PHP authentication I must be able to user
 variables such as $PHP_AUTH_USER that are only avaible when  PHP is
 installed as a module. On the other hand I am using APACHE 1.3.17 with PHP
 4.04 and I have configured Apache with the following lines:

 ScriptAlias /php4/ "C:/php/"
 Action application/x-httpd-php4 "/php4/php.exe"
 AddType application/x-httpd-php4 .php

 As I think it could be interesting to use this kind of authentication, I
 need some help for configuring PHP as a module discarding the CGI version
of
 PHP that I think I am using with the lines of code above, so I would be
very
 grateful if anyone could give some help about configuring PHP this way.

 Thank everybody,

This is all I did added this to the module airea
LoadModule php4_module d:/php/sapi/php4apache.dll
and just uncomented this
AddType application/x-httpd-php .php
hope this helps




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP Authentication

2001-03-25 Thread Jack Dempsey

Hi Jon,

just to let you know, you don't "need" $PHP_AUTH_USER to do
authentication...i just finished up a little auth system (which works and
i'm psyched) and i only used some session variables.that having been
said, if you want to configure it as a module, check out www.php.net if you
got it up and running once, getting it to work as a module shouldn't be too
bad

-jack

-Original Message-
From: Jon [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 2:38 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Authentication


Hi,

I have read that for using PHP authentication I must be able to user
variables such as $PHP_AUTH_USER that are only avaible when  PHP is
installed as a module. On the other hand I am using APACHE 1.3.17 with PHP
4.04 and I have configured Apache with the following lines:

ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php

As I think it could be interesting to use this kind of authentication, I
need some help for configuring PHP as a module discarding the CGI version of
PHP that I think I am using with the lines of code above, so I would be very
grateful if anyone could give some help about configuring PHP this way.

Thank everybody,



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]