i can't be the only one with this problem, but i didn't see anyone
complaining
*shrug*
 
ldaplookup looks at the wrong field for password comparison
( was testing accounts with qmail-ldaplookup -u username -p password and
not getting a "yes or no" on the password's validity )
 
so here's the diff of my quickfix
 
--- qmail-1.03.ldap/qmail-ldaplookup.c  Tue Dec 17 09:53:39 2002
+++ qmail-1.03.develldap/qmail-ldaplookup.c     Tue Dec 17 11:36:53 2002
@@ -298,8 +298,8 @@
        }
        if ( mode == uid && passwd && !rebind &&
-                       extra[10].vals && extra[10].vals[0] ) {
-               ret = cmp_passwd((unsigned char *) passwd,
extra[10].vals[0] );
+                       extra[11].vals && extra[11].vals[0] ) {
+               ret = cmp_passwd((unsigned char *) passwd,
extra[11].vals[0] );
                output(&ssout, "qldap_lookup:\tpassword compare was
%s\n",
                                ret==0?"successful":"not successful");
        }



Reply via email to