Index: [Article Count Order] [Thread]

Date:  Fri, 04 Jan 2008 12:10:42 -0500
From:  Matthew Komar <mkomar (at mark) serverrack.net>
Subject:  [coba-e:11660] Change password via php.
To:  coba-e (at mark) bluequartz.org
Message-Id:  <477E6892.9030504 (at mark) serverrack.net>
X-Mail-Count: 11660

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?