[vchkpw] Crypt incompatibility

2004-08-27 Thread Jeremy Kister
I have vpopmail 5.4.5 on an array of Solaris sparc machines. One of Solaris machines hosts the qmail control files, the assign file, and the vpopmail domains directory. All the client machines deliver mail via NFS. I recently added a FreeBSD 5.2.1-R i386 box to the mix. This box can deliver

Re: [vchkpw] Crypt incompatibility

2004-08-27 Thread Jeremy Kitchen
On Friday 27 August 2004 12:11 pm, Jeremy Kister wrote: [snip: I broke it] I wrote my own vchkpw in perl (inspectable at: http://jeremy.kister.net/code/perl/vchkpw.pl): why? this question isn't related to vpopmail. You should ask your OS vendors, or some perl gurus. -Jeremy -- Jeremy

Fw: [vchkpw] Crypt incompatibility

2004-08-27 Thread Jeremy Kister
On Friday, August 27, 2004 1:14 PM, Jeremy Kitchen wrote: why? this question isn't related to vpopmail. You should ask your OS vendors, or some perl gurus. I'm not sure that you read my email. the vchkpw.pl was just debugging information. qmail-popup works fine, but smtp auth using vchkpw

Re: [vchkpw] Crypt incompatibility

2004-08-27 Thread Tom Collins
On Aug 27, 2004, at 10:11 AM, Jeremy Kister wrote: From the Solaris box: max ./vchkpw.pl Email Address: [EMAIL PROTECTED] Password: asdf test: $1VUyx7YfKO2w - crypt: $1VUyx7YfKO2w Correct Password From the FreeBSD box: penny ./vchkpw.pl Email Address: [EMAIL PROTECTED] Password: asdf test:

Fw: [vchkpw] Crypt incompatibility

2004-08-27 Thread Jeremy Kister
On Friday, August 27, 2004 1:26 PM, Tom Collins wrote: What was used to generate the $1 salt for the original crypted passwords? your software. ~vpopmail/bin/vadduser [EMAIL PROTECTED] asdf, on Solaris 2.7 sparc vpopmail 5.4.6 Jeremy Kister http://jeremy.kister.net/

Re: [vchkpw] Crypt incompatibility

2004-08-27 Thread Jeremy Kister
On Friday, August 27, 2004 1:33 PM, Tom Collins wrote: What was used to generate the $1 salt for the original crypted passwords? Interestingly, *all* the crypts in every vpasswd (192 of them) start with $1, and all have been created using some version of vadduser. i just asked a friend,

Re: [vchkpw] Crypt incompatibility

2004-08-27 Thread Tom Collins
On Aug 27, 2004, at 10:33 AM, Jeremy Kister wrote: What was used to generate the $1 salt for the original crypted passwords? your software. ~vpopmail/bin/vadduser [EMAIL PROTECTED] asdf, on Solaris 2.7 sparc vpopmail 5.4.6 Your server's crypt() doesn't support MD5 passwords. You will need to

Re: [vchkpw] Crypt incompatibility

2004-08-27 Thread Jeremy Kister
On Friday, August 27, 2004 2:00 PM, Tom Collins wrote: Your server's crypt() doesn't support MD5 passwords. You will need to rebuild vpopmail with the --disable-md5-passwords option. You've solved my problem (after also recompiling/reinstalling qmail). If you compiled with clear password

Re: [vchkpw] Crypt incompatibility

2004-08-27 Thread Tom Collins
On Aug 27, 2004, at 2:29 PM, Jeremy Kister wrote: Here's a patch I'm adding to vpopmail to fall back to using a non-MD5 salt if the host's crypt() doesn't handle MD5. [..] + if (tmpstr[2] != '$') { I know less than nothing about C, but shouldnt that be: 'if (tmpstr[0] == '$') {' ? In an