This patch allows the admin to run external commands when a user is created/updated and when he is deleted.
Works great with .htaccess using the following commands:
/usr/bin/htpasswd -b /path/to/htpasswd "%user" "%pass"
/usr/bin/htpasswd -D /path/to/htpasswd "%user"

Comments

Skyr’s picture

Status: Needs review » Needs work

Just noticed: Works well on existing users... but is not called when the admin creates a new user manually.
Some spontaneous idea, anyone?

Still, I think the patch is a good idea and is worth working on it.

Skyr’s picture

Status: Needs work » Needs review
StatusFileSize
new2.75 KB

Sometimes, life can be easy :-)
An updated patch, properly handling the creation of new accounts - and some error handling for the exec statements.

gaards’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.