Solved

.htaccess - database authentication

Posted on 2006-06-11
5
279 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now