From: Timo Sirainen Date: Wed, 26 Jan 2022 12:46:55 +0000 (+0200) Subject: auth: ldap: Reconnect to server if receiving unknown msgid X-Git-Tag: 2.4.0~4582 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=018d33978b55bc65d3048f8b376c964ef1005518;p=thirdparty%2Fdovecot%2Fcore.git auth: ldap: Reconnect to server if receiving unknown msgid It's unclear why this happens. Is it a bug on server or client side? Either way, this situation doesn't now fix itself automatically, so reconnecting should help. --- diff --git a/src/auth/db-ldap.c b/src/auth/db-ldap.c index 602cc079c1..77996d8206 100644 --- a/src/auth/db-ldap.c +++ b/src/auth/db-ldap.c @@ -907,6 +907,7 @@ db_ldap_handle_result(struct ldap_connection *conn, struct db_ldap_result *res) request = db_ldap_find_request(conn, msgid, &idx); if (request == NULL) { e_error(conn->event, "Reply with unknown msgid %d", msgid); + ldap_conn_reconnect(conn); return; } /* request is allocated from auth_request's pool */