Download & Extend

Run external commands on user password update / user delete

Project:Webserver authentication
Version:6.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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

Comments

#1

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

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
nobody click here