Fedora Linux Support Community & Resources Center
  #1  
Old 27th October 2004, 02:47 AM
DJDaveET Offline
Registered User
 
Join Date: Oct 2004
Posts: 2
Fedora Core 2, Apache 2, and Auth_MySQL_Info

I'm performing an upgrade of one of my web servers from an old Debian release running Apache 1.3.

So I loaded Apache and relevant modules using yum, and and turned it on. Success!

Next, I started the conversion of my old 1.3 httpd.conf well into it, and added this:

LoadModule mysql_auth_module modules/mod_auth_mysql.so

This loaded correctly.

Now, I moved onto the section of a virtual host.

Contained within that virtual host was a line that made all the PHP calls in the website authenticate against the mySQL database:

Auth_MySQL_Info localhost <usernamedeleted> <passworddeleted>

When I started up apache, I get:

Syntax error on line 1762 of /etc/httpd/conf/httpd.conf:
Invalid command 'Auth_MySQL_Info', perhaps mis-spelled or defined by a module not included in the server configuration

And, lo and behold, checking /server-info verifies that the Directive isn't included.

Module Name: mod_auth_mysql.c

Content handlers: none
Configuration Phase Participation: Create Directory Config
Request Phase Participation: Verify User ID, Verify User Access

Module Directives:
AuthMySQLHost - mysql server host name
AuthMySQLUser- mysql server user name
AuthMySQLPassword - mysql server user password
AuthMySQLDB - mysql database name
AuthMySQLUserTable - mysql user table name
AuthMySQLGroupTable - mysql group table name
AuthMySQLNameField - mysql User ID field name within table
AuthMySQLGroupField - mysql Group field name within table
AuthMySQLPasswordField - mysql Password field name within table
AuthMySQLCryptedPasswords - mysql passwords are stored encrypted if On
AuthMySQLScrambledPasswords - mysql passwords are stored scrambled if On
AuthMySQLMD5Passwords - mysql passwords are stored as MD5 if On
AuthMySQLKeepAlive - mysql connection kept open across requests if On
AuthMySQLAuthoritative - mysql lookup is authoritative if On
AuthMySQLNoPasswd - If On, only check if user exists; ignore password
AuthMySQLUserCondition - condition to add to user where-clause
AuthMySQLGroupCondition - condition to add to group where-clause


Now, checking the module readme, there was a bug in pre version 4.21 releases of the code which caused this. However, that's very old code, and I would guess the code is newer....

I'd like to ensure that my system is still well maintained with yum and automated tools -- thus I don't want to do download the module code and recompile unless it really isn't possible to do any other way.

Can someone help?

Dave
Reply With Quote
  #2  
Old 27th October 2004, 10:35 PM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 28
Posts: 7,909
I'm aware of no such option. Was there one before? See the readme of the module.

Does the option have the underscores in it?
Reply With Quote
  #3  
Old 28th October 2004, 02:18 AM
DJDaveET Offline
Registered User
 
Join Date: Oct 2004
Posts: 2
A matter of module...

It's really a matter of 'which' module.

The one included in Debian does support this -- and the one included in Fedora is very much out of date. According to the package list at
http://fedora.redhat.com/projects/package-list/, the version of mod_auth_mysql Fedora is shipping with is 20030510. That looks like a version number for the modauthmysql project, http://www.sf.net/projects/modauthmysql, and a pretty old one at that.

Dave
Reply With Quote
Reply

Tags
apache, authmysqlinfo, core, fedora

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache for fedora core 4 dosti Servers & Networking 2 22nd November 2006 05:01 AM
Fedora Core 2 and Apache and php marks_linux Using Fedora 5 21st August 2004 11:59 AM


Current GMT-time: 00:41 (Sunday, 20-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat