Hi Andre, consider applying the following patch:

diff --recursive --unified qmail-1.03/checkpassword.c qmail-1.03-japc/checkpassword.c
--- qmail-1.03/checkpassword.c  2003-08-06 11:45:30.000000000 +0100
+++ qmail-1.03-japc/checkpassword.c     2003-08-06 11:45:03.000000000 +0100
@@ -339,6 +339,7 @@
        int  shift;
        
        if (encrypted[0] == '{') { /* hashed */
+    case_lowerb(encrypted+1, (byte_chr(encrypted,strlen(encrypted),'}')) );
                if (!str_diffn("{crypt}", encrypted, 7)) {
                        /* CRYPT */
                        shift = 7;


This makes the userpassword scheme prefix match case insensitive.

Check rfc 2307 section 5.3 for why this is a good idea.

10x

-- 
Jose Celestino | http://xpto.org/~japc/files/japc-pgpkey.asc
----------------------------------------------------------------
"Lately, the only thing keeping me from becoming a serial killer is
my distaste for manual labor."        -- Dilbert

Reply via email to