From: Timo Sirainen Date: Fri, 8 Oct 2021 13:32:09 +0000 (+0300) Subject: master: test-auth-client - Check that authorization ID is as expected X-Git-Tag: 2.3.18~196 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2555d374c04c286985b47d6d8b47b3410a52e873;p=thirdparty%2Fdovecot%2Fcore.git master: test-auth-client - Check that authorization ID is as expected --- diff --git a/src/master/test-auth-client.c b/src/master/test-auth-client.c index af295a16d6..d161a5b45c 100644 --- a/src/master/test-auth-client.c +++ b/src/master/test-auth-client.c @@ -344,6 +344,13 @@ test_auth_handshake_auth_plain(struct server_connection *conn, unsigned int id, } i_assert(authenid != NULL); + if (strcmp(authid, "supremelordoftheuniverse") != 0) { + /* unexpected authorization ID */ + o_stream_nsend_str( + conn->conn.output, + t_strdup_printf("FAIL\t%u\tuser=%s\n", id, authenid)); + return TRUE; + } if (strcmp(authenid, "harrie") == 0 && strcmp(pass, "frop") == 0) { o_stream_nsend_str( conn->conn.output,