CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Apache/MySQL Auth Mod

 



Coderifous
journeyman

Feb 11, 2002, 6:00 PM

Post #1 of 7 (1559 views)
Apache/MySQL Auth Mod Can't Post

Has anyone in here successfully implemented the protected directory authorization method using mod_auth_mysql for Apache 1.3.x ? I've started today attempting to get it to work, and didn't have a very auspicious launch.Unsure


I've got the Database table in MySQL.
I've got the .htaccess file inside the directory
that needs to be protected.
I've got a couple mod_auth_mysql directives in my httpd.conf


I don't really know where in the httpd.conf these should be, and I'm not sure if I've done all that is required. If anyone has done this before, I'd appreciate any advice on the subject. I haven't spent much time on it, but I figure if there are any tricks to it, might as well ask early rather than discover the 'forehead smacker' later on.Tongue

--Jim


unknownSym
stranger

Feb 12, 2002, 7:16 AM

Post #2 of 7 (1548 views)
Re: [Coderifous] Apache/MySQL Auth Mod [In reply to] Can't Post

The documentation, for where the directives should go, is in the source code file. Take a look at that first. I you have any more problems after that, then send me the source for the module and I take a look at it. I've used this module before, but it was a year ago.


Coderifous
journeyman

Feb 12, 2002, 9:07 AM

Post #3 of 7 (1539 views)
Re: [unknownSym] Apache/MySQL Auth Mod [In reply to] Can't Post

On my system (NT 4.0) I have a software package created by a company called NuSphere installed. In that package was: Perl,PHP,Apache Server, and MySQL. Nice little package. Anyways, since it's for windows, most everything has to be binary, since there is no compilter native to windows (that I know of). So, the mod_auth_mysql thing is in a ".dll" format. Dynamic Linked Library?

I don't know how to include this in my httpd.conf. I tried this:

LoadModule auth_mysql_module modules/mod_auth_mysql.dll

and it isn't working. I get an error message:

Syntax error on line ... of file_name ...: Can't locate API module structure 'auth_mysql_module' in file d:/blah/blah/blah (127) The specified procedure could not be found:

Note the errors or messages above, and press the (ESC) key to exit.

So I'm left believing that I have the necessary software, I just don't know how to implement it. Any suggestions?


unknownSym
stranger

Feb 12, 2002, 9:56 AM

Post #4 of 7 (1535 views)
Re: [Coderifous] Apache/MySQL Auth Mod [In reply to] Can't Post

Sure. I downloaded the source for the module, and I found that you need to change "auth_mysql_module" to "mysql_auth_module". This is the name of the module, and is defined in the source. I'm also attaching the source code which has the documentation in it. Hope this helps.
Attachments: mod_auth_mysql.c (20.7 KB)


Coderifous
journeyman

Feb 12, 2002, 10:01 AM

Post #5 of 7 (1534 views)
Re: [unknownSym] Apache/MySQL Auth Mod [In reply to] Can't Post

WOOOO HOOOOO!Laugh You did it man! It worked. I have to go to a lunch meeting now. I am in debt to you! You are the man! Thanks for your help, it's amazing that something so insignificant would be the problem.

Thanks alot for your help.

--Jim


unknownSym
stranger

Feb 12, 2002, 10:15 AM

Post #6 of 7 (1532 views)
Re: [Coderifous] Apache/MySQL Auth Mod [In reply to] Can't Post

No problem. Could you send the mod_auth_mysql dll to me? I'm looking for something like this for Windows version of Apache.


Jasmine
Administrator

Feb 12, 2002, 10:22 AM

Post #7 of 7 (1531 views)
Re: [Coderifous] Apache/MySQL Auth Mod [In reply to] Can't Post

Regarding compilers for Windows:

Jasmine


(This post was edited by Jasmine on Feb 12, 2002, 10:35 AM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives