On Mon, Jun 28, 2004 at 12:36:00PM -0500, Nicol�s de Bari Embr�z G. R. wrote:
> Hi, I follow all this steps and found the bug.
>
> any idea on how to solve this problem?
>
> i am using the lates release of the qmail-ldap patch.
>
Hmm. Indeed there is a bug in checkpassword.c
The following patch should fix that.
thanks for the report.
--
:wq Claudio
Index: checkpassword.c
===================================================================
RCS file: /home/cvs-djbware/CVS/qmail-ldap/checkpassword.c,v
retrieving revision 1.70
diff -u -p -r1.70 checkpassword.c
--- checkpassword.c 16 Apr 2004 13:24:17 -0000 1.70
+++ checkpassword.c 29 Jun 2004 17:20:13 -0000
@@ -92,7 +92,7 @@ check_ldap(stralloc *login, stralloc *au
int r, status, pwok, needforward;
unsigned long count, size, max;
const char *attrs[] = {
- LDAP_UID, /* the first 6 attrs are default */
+ LDAP_UID, /* the first 10 attrs are default */
LDAP_QMAILUID,
LDAP_QMAILGID,
LDAP_ISACTIVE,
@@ -125,7 +125,7 @@ check_ldap(stralloc *login, stralloc *au
attrs[1] = 0;
} else {
if (qldap_need_rebind() != 0)
- attrs[7] = 0;
+ attrs[10] = 0;
}
filter = filter_uid(login->s);