I'm looking for a way to change passwords via PHP. I want to avoid using
the admin web interface.
I was initially thinking of an interface which would prompt the user for
the old password and new password, then open a shell to 'passwd
username'. However, only root can change another users password and
apache of course does not run as root.
I figure that if it can be done both through the admhttp and OpenWebMail
(via perl) that there must be a way to do it through PHP. I've read some
about using some PAM PHP module or something to that effect. Anybody
tackle this yet?