Forum Moderators: phranque

Message Too Old, No Replies

dynamically generated .htpasswd

         

maliskoleather

6:50 am on May 2, 2007 (gmt 0)

10+ Year Member



I'm trying to rework my .htpasswd setup right now... I have an database of users, some of which are allowed access to specific folders... most of my access security is at the webpage level (php checking against database options)... however, that dosent stop access to some of the other files. So currently, i run a cron every so often that generates a .htpasswd file with the proper usernames and passwords.

what i really want to do though, is set it up so that the .htpasswd file is dynamic, and loads the allowed usernames and passwords on runtime. I can't use most of the languages that im familliar with, because apache reads the file, and doesnt execute it, therefore reading the source and not the returned data.

any ideas on how i could handle this?

phranque

7:06 am on May 2, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you should look into the mod_auth_db module:

[httpd.apache.org...]
[httpd.apache.org...]

maliskoleather

7:36 am on May 2, 2007 (gmt 0)

10+ Year Member



My only issue with mod_auth_db, is that you have you use Berkley DB files... and i'd like to use the same MySQL/ISAM tables that i already have :[