[Dovecot] Slightly off topic question but ...
I'm using files for passwords that look like the unix passwd and shadow files, except each domain has it's own pair of shadow and password files for that domain. And dovecot works fine with that.
So - here's my off topic question. I'm trying to create a PHP interface to allow user to change their password in these passwd / shadow file combos. What kind of encryption do they use and specifically what PHP command would I use to encrypt a password like the shadow file has?
Thanks in advance.
Hi Marc,
Marc Perkel schrieb:
So - here's my off topic question. I'm trying to create a PHP interface to allow user to change their password in these passwd / shadow file combos. What kind of encryption do they use and specifically what PHP command would I use to encrypt a password like the shadow file has?
These files are using standard crypt or md5crypt.
See http://de.php.net/manual/en/function.crypt.php
Benjamin
-- Benjamin Dabelow dabelow@tuxoft.de Offenburger Str. 29 tuxoft.de 69126 Heidelberg Germany
On 12/11/06, Benjamin Dabelow dabelow@tuxoft.de wrote:
Hi Marc,
Marc Perkel schrieb:
So - here's my off topic question. I'm trying to create a PHP interface to allow user to change their password in these passwd / shadow file combos. What kind of encryption do they use and specifically what PHP command would I use to encrypt a password like the shadow file has?
These files are using standard crypt or md5crypt.
... to extend this off-topic thread:
I'm using HMAC-MD5 passwords in my passdb (the string is a HMAC-MD5 _context_, to be precise). Currently, the only known method to me for creating these contexts is to use the dovecotpw utility. I wonder if there are other possibilites (perl, PHP, ...).
Chris
Marc Perkel wrote:
I'm using files for passwords that look like the unix passwd and shadow files, except each domain has it's own pair of shadow and password files for that domain. And dovecot works fine with that.
So - here's my off topic question. I'm trying to create a PHP interface to allow user to change their password in these passwd / shadow file combos. What kind of encryption do they use and specifically what PHP command would I use to encrypt a password like the shadow file has?
Thanks in advance.
There is dovcotpw executable just for that.
-- VH
participants (4)
-
Benjamin Dabelow
-
Chris Laif
-
Marc Perkel
-
Václav Haisman