LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2006, 02:48 PM   #1
loewen
LQ Newbie
 
Registered: Sep 2004
Posts: 14

Rep: Reputation: 0
mod_auth_mysql query to multiple database


Good day again.

Can mod_auth_mysql authenticate using 2 databases and satisfy any result?

I made an htaccess file and added two mysql auth. But it seems that on the last one is working and the first in the list is ignored.

How can I make is so that it authenticates to two databases?

Here's part of my htaccess:
order deny,allow
deny from all

AuthGroupFile /dev/null
AuthName "Members Area"
AuthType Basic



AuthMySQLHost 202.91.162.52
AuthMySQLDB db1
AuthMySQLUser loewen
AuthMySQLPassword loewen
AuthMySQLUserTable members
AuthMySQLNameField uname
AuthMySQLPasswordField pword
AuthMySQLPwEncryption none
#AuthMySQLUserCondition "status=1"
AuthMySQLKeepAlive Off
AuthMySQLAuthoritative Off

AuthName "Members Area"
AuthType Basic
AuthMySQLHost 202.91.162.51
AuthMySQLDB db2
AuthMySQLUser name1
AuthMySQLPassword pass
AuthMySQLUserTable members_auth
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLPwEncryption none
#AuthMySQLUserCondition "status=1"
AuthMySQLKeepAlive Off
AuthMySQLAuthoritative On


require valid-user
satisfy any
<Files .htaccess>
order allow,deny

Last edited by loewen; 11-20-2006 at 09:22 PM.
 
Old 11-20-2006, 09:24 PM   #2
loewen
LQ Newbie
 
Registered: Sep 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Is this actually possible? It seems that auth mysql bypasses the first db and just looks up the second.
 
Old 11-21-2006, 10:04 AM   #3
loewen
LQ Newbie
 
Registered: Sep 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Anyone who can point me in the right direction? Perhaps my htaccess sntax is wrong.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple installs of same package in RPM database kamdh Fedora 10 10-15-2015 08:18 AM
Software for bibliographic database creation/query bruno buys Linux - Software 1 07-29-2006 01:27 PM
write an update query in shell prompt to update the database in sqlserver suchi_s Programming 2 09-29-2004 07:27 AM
Database query? GrayLOK Linux - General 1 08-10-2002 01:15 PM
query DNS and create mysql database nabil Programming 0 01-18-2002 04:42 AM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration