A nice feature would be to import users in an existing htpasswd file to Drupal's user database. Though this would only import their usernames and passwords as nothing else is stored in the htpasswd file.

Comments

stodge’s picture

Priority: Normal » Minor
2noame’s picture

Thanks mikeytown2, except that stuff may as well be written in ancient sanskrit. I'm looking for the same functionality and have no idea how to go about doing it, despite reading the API stuff.

m.fu’s picture

mikeytown2, I'm sorry but it cannot be done this way, as the htpasswd md5 is not compatible with the drupal md5.
This is why I created this module and that it can only use crypt and sha-1 for password encryption.

2noname, I have not found any way of doing what you want. There might be a way to recreated the users through one of the import user module, but nothing can be done to convert the password, except maybe modify the way drupal uses password which is not the goal of this module.

This module is for managing users in drupal and getting a htpasswd that is in sync with the drupal database.

However, you can use http://drupal.org/project/webserver_auth to work the other way around, and manage users in the htpasswd will and get drupal to use it for authentication.

Hope it helps.

M.Fu

m.fu’s picture

Status: Active » Closed (won't fix)