Run external commands on user password update / user delete

Skyr - March 12, 2009 - 10:36
Project:Webserver authentication
Version:6.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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"

AttachmentSize
webserver_auth-externalcmds.diff2.23 KB

#1

Skyr - March 12, 2009 - 10:43
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.

#2

Skyr - March 12, 2009 - 11:23
Status:needs work» needs review

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

AttachmentSize
webserver_auth-externalcmds.diff 2.75 KB
 
 

Drupal is a registered trademark of Dries Buytaert.