How to password protect directories outisde drupal

m.fu - March 8, 2009 - 17:23

Hi,

I have moved my website to drupal and I am very happy with it.

I also have a gallery of photo (generated with Jalbum, simple html/gif files). This gallery is privated and protected by a htaccess/htpasswd combination.

What I'd like to achieve, is that drupal update the htpasswd/htgroup when I create/delete users from within drupal. Such that, you have a username/password to log into drupal, and when you access the image gallery you have to authenticate again, but can use the same username password you used for drupal.

I cannot use the apache_mysql_auth module, it is not available from my hoster.

Thanks for you help.

Marc.

From my search in the module

m.fu - March 8, 2009 - 19:33

From my search in the module list, what I am looking for is the equivalent of export_users_dbm
but with the htpasswd/htgroup format.

made my own module

m.fu - March 14, 2009 - 16:49

I did not find a better solution than making my own module.

I plan to release it to the drupal community. In the mean time, contact me if you need it.

htpasswd sync released

m.fu - March 16, 2009 - 20:44

Well, it's done, you can find the module here: http://drupal.org/project/htpasswdsync

 
 

Drupal is a registered trademark of Dries Buytaert.