[Dovecot] base dn and filter strings are concatenated

Kazuo Moriwaka moriwaka at valinux.co.jp
Fri Jan 14 13:18:23 EET 2005


Hello,

When I set LDAP auth's search base dn, base dn and filter strings
are concatenated. It cause filter cannot match any entries...
I fixed it. Please check following patch.

p.s. 
 LDAP userdb/passdb's debug print have " fields=..." but it print
 junks.

regards,
-- 
Kazuo Moriwaka <moriwaka at valinux.co.jp>


Index: src/auth/passdb-ldap.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/passdb-ldap.c,v
retrieving revision 1.21
diff -r1.21 passdb-ldap.c
161a162
> 	str_free(str);
162a164
> 	str = t_str_new(512);
172c174
< 			       conn->set.base, conn->set.scope, filter,
---
> 			       base, conn->set.scope, filter,
Index: src/auth/userdb-ldap.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/userdb-ldap.c,v
retrieving revision 1.25
diff -r1.25 userdb-ldap.c
174a175
> 	str_free(str);
175a177
> 	str = t_str_new(512);
187c189
< 			       conn->set.base, conn->set.scope, filter,
---
> 			       base, conn->set.scope, filter,


More information about the dovecot mailing list