Solved

.htaccess - database authentication

Posted on 2006-06-11
5
284 Views
Last Modified: 2008-02-07
Hello - we have a website with cookies authentication and .htaccess file that protect videos.

The problem we have is that .htaccess cannot read the users from our database to see if they are valid users or not.

we have something like this for the htaccess file to read users from our database with the correct values, please any ideas? Thank you.

AuthGroupFile /dev/null
AuthName RESTRICTED
AuthType Basic
 
AuthMySQLHost
AuthMySQLDB
AuthMySQLUser
AuthMySQLPassword
AuthMySQLUserTable username
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLCryptedPasswords Off
AuthMySQLScrambledPasswords Off
AuthMySQLKeepAlive on
 

<Limit GET POST>
 require valid-user
</Limit>
0
Comment
Question by:epmo
  • 3
5 Comments
 
LVL 6

Accepted Solution

by:
JJSmith earned 500 total points
ID: 16881474

have you read through:

http://www.javascriptkit.com/howto/htaccess.shtml

Cheers
JJ
0
 
LVL 6

Expert Comment

by:JJSmith
ID: 16881489

For a more specific mysql config try:

http://www.linuxhelp.net/guides/htaccessmysql/

Cheers
JJ
0
 
LVL 6

Expert Comment

by:JJSmith
ID: 16881497

Note the:

AuthMySQLAuthoritative            On

in the link above.

Cheers
JJ
0
 

Author Comment

by:epmo
ID: 17555914
Thank you
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hyper-threading config in Solaris 6 192
ftpcommand 2 74
Install MySQL 5.6 and PHP on Centos Linux 6 161
UNIX Script. Send email if failure 8 64
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question