]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-sasl: sasl-server-mech-winbind - Fix error message composition for NA return...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sat, 4 Oct 2025 16:07:25 +0000 (18:07 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 9 Oct 2025 08:41:22 +0000 (08:41 +0000)
src/lib-sasl/sasl-server-mech-winbind.c

index 3085add9030780abe26fff1968970909fbbe06ad..73e765c0234a8c2a498349e2d4eacf9e5131ac6f 100644 (file)
@@ -353,7 +353,8 @@ do_auth_continue(struct winbind_auth_request *request,
                request->continued = TRUE;
                return HR_OK;
        } else if (strcmp(token[0], "NA") == 0) {
-               const char *error = gss_spnego ? token[2] : token[1];
+               const char *error =
+                       t_strarray_join(gss_spnego ? token+2 : token+1, " ");
 
                e_info(auth_request->event, "user not authenticated: %s",
                       error);