Running script when domain admin changes password

Is there a way that I could have Virtualmin run a script when a domain admin changes password. I’d like to set it up so that it automatically changes the MySQL password setting in the CMS we’re using when admins change their passwords.

I’m using Virtuamin GPL on CentOS 5.

I don’t believe there’s a way to do that now.

If you’re interested in pursuing that, you might try putting that into the Bugs and Issues tracker.

That’s an interesting feature idea, perhaps Jamie would be interested in implementing that.
-Eric

Actually, I’m pretty sure there is a pre/post hook for this. Maybe the Users and Groups command will run when changing passwords? That’ll end up getting run for everyone, so you’ll have to make it smart enough to recognize users that have applications to fix (but you’ll have to make it smart enough for that anyway). But, I’m pretty sure that’ll work.

Holler if it doesn’t or the docs at http://doxfer.com/Webmin/UsersAndGroups#Before_and_after_commands don’t tell you what you need to know to make it work, and I’ll get Jamie to check in on this thread to answer any further queries.

Thanks. I’ll check it out.