[dovecot-cvs] dovecot/src/auth passdb-ldap.c,1.59,1.60
tss at dovecot.org
tss at dovecot.org
Thu Apr 12 19:23:49 EEST 2007
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv4004
Modified Files:
passdb-ldap.c
Log Message:
Don't crash if doing non-plaintext ldap passdb lookup for unknown user.
Index: passdb-ldap.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-ldap.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- passdb-ldap.c 2 Apr 2007 10:23:10 -0000 1.59
+++ passdb-ldap.c 12 Apr 2007 16:23:47 -0000 1.60
@@ -173,7 +173,12 @@
}
}
- request->callback.verify_plain(passdb_result, auth_request);
+ if (auth_request->credentials != -1) {
+ request->callback.lookup_credentials(passdb_result, NULL,
+ auth_request);
+ } else {
+ request->callback.verify_plain(passdb_result, auth_request);
+ }
auth_request_unref(&auth_request);
return NULL;
}
More information about the dovecot-cvs
mailing list