Thanks, but I don't think that worked.

I removed the line containing !str_diffn("{crypt}"..etc., and I added
the line with both {crypt} and {CRYPT}.  I then recompiled ("make
setup check") the ldap patched qmail source.  My auth_pop and
qmail-ldaplookup files have new date/time stamps, but authentication
against {CRYPT} passwords still fails.

I'm open to any other suggestions.

Thanks!
Mike



Henning Brauer wrote:

>On Tue, Apr 16, 2002 at 01:41:37PM -0400, Mike Lichtenwalner wrote:
>> The passwords are all in crypt format but some of them begin with {crypt} >> and 
>others begin with {CRYPT}.
>
>totally untested:
>
>--- checkpassword.c.o2 Tue Apr 16 19:49:12 2002
>+++ checkpassword.c    Tue Apr 16 19:50:25 2002
>@@ -347,7 +347,7 @@
>       int  shift;
>       >       if (encrypted[0] == '{') { /* hashed */
>-              if (!str_diffn("{crypt}", encrypted, 7) ) {
>+              if (!str_diffn("{crypt}", encrypted, 7) || !str_diffn("{CRYPT}", 
>>encrypted, 7) ) {
>                       /* CRYPT */
>                       shift = 7;
>                       str_copy(hashed, crypt(clear, encrypted+shift) );
>
>


Reply via email to