]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: ldap: Reconnect to server if receiving unknown msgid
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 26 Jan 2022 12:46:55 +0000 (14:46 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 1 Feb 2022 11:56:43 +0000 (11:56 +0000)
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.

src/auth/db-ldap.c

index 602cc079c13c9c377c4d2576cca6468a327e3696..77996d820675fe24cd685689a203899713f6258d 100644 (file)
@@ -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 */