Solved

.htaccess - database authentication

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CPU monthly average? 12 120
NTP Server in VMware 5 230
Write an app 10 70
retrieve nuemaric value from txt file in shell script 3 69
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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

831 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