Add vmail command for changing password when you know the current password
authorClinton Ebadi <clinton@unknownlamer.org>
Fri, 9 May 2014 08:40:31 +0000 (04:40 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 9 May 2014 08:40:31 +0000 (04:40 -0400)
commit0e0442b0650ceb74175905578054db8877b1bbbd
tree0da71643fab53bc4cf2653d87aac72b5d00a1e0b
parentebb51f80568cc35cf3cd2f99a31a28f72526798d
Add vmail command for changing password when you know the current password

Not 100% sure if this the best way, but the members portal was tied to
*the* mail node, which is not good to begin with, and breaks when
there are multiple mail nodes.

 * Replaces vmailpasswd.c, which is an awful program (passed password on
   the command line revealing it to `ps' and only supports a local
   filesystem userdb).
 * Restricted to users with the priv `vmail' for now, and only used by
   the portal. Not much worth in exposing generally it seems (vmail
   users cannot login to any shell machines, at least at hcoop)
 * Includes helper python program to run crypt() (better than C at
   least...)
 * New function to parse the userdb into a StringMap (a better
   approach is possible, similar to the Vmail.list). Will be used to
   compile the database for Dovecot later.
 * New binary `domtool-portal' to expose replacement vmailpasswd command
Makefile
scripts/domtool-vmailpasswd [new file with mode: 0755]
src/mail/vmail.sig
src/mail/vmail.sml
src/main-portal.sml [new file with mode: 0644]
src/main.sig
src/main.sml
src/msg.sml
src/msgTypes.sml