Community & Support

How to password protect directories outisde drupal

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.

Comments

From my search in the module

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

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

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