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 at tuxoft.de Offenburger Str. 29 tuxoft.de 69126 Heidelberg Germany -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20061211/7cb597b0/attachment.bin>
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 542 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20061213/af107e7c/attachment.bin>