[nycphp-talk] Httpd
Michele Waldman
mmwaldman at nyc.rr.com
Mon Feb 2 14:48:27 EST 2009
I want to check the Authorization header for the realm. Can't do that with
Basic Authentication, because realm is not defined in that case.
There is one that authenticates against mysql. It's called mod_auth_mysql.
But, it uses Basic authentication, which is insufficient.
Hacking the mod_auth_digest module was a simple process. I simply switch
the actual user and password verification from the file to the database.
Who knows. Maybe, it will be a new trend. :-) I left all of the nce stuff
in place. But I can not get it to link to the standard library crypt for
some reason. This is the biggest compilation problem I've ever had. I've
tried everything I could think of, except apr_password_validate(sent_pw,
real_pw) instead of crypt. Duh. That should work.
I do use PHP_AUTH_USER for some stuff, just not this. The site is a combo
of php, mysql, javascript, html, css and htaccess.
Plus, I'm dying to see if my modifications will fly. If it works, it will
be pretty nifty.
I'm going to try that function now.
Michele
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Hans Zaunere
Sent: Monday, February 02, 2009 2:25 PM
To: 'NYPHP Talk'
Subject: Re: [nycphp-talk] Httpd
> Can someone direct me to a apache forum other than
> http://httpd.apache.org/lists.html. I gotten no response.
>
> I modified mod_auth_digest to use mysql and crypt, but the crypt symbol
> is undefined when I try to restart apache.
What are you actually trying to do? I doubt you need to hack Apache modules
to accomplish whatever it is.
There are modules to authenticate against a MySQL database. Check out the
module listings for Apache.
But, seeing as this is a PHP list, you probably should use PHP/MySQL
together, which can do the authentication for you... like it does for
millions of other web sites.
H
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/show_participation.php
More information about the talk
mailing list