summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/utils/ntlm_auth.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c
index 1685f8387f..ad804eda3c 100644
--- a/source4/utils/ntlm_auth.c
+++ b/source4/utils/ntlm_auth.c
@@ -436,7 +436,7 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode,
lp_winbind_separator(), session_info->server_info->account_name);
talloc_destroy(session_info->mem_ctx);
}
- } else if ((*gensec_state)->gensec_role == GENSEC_SERVER) {
+ } else if ((*gensec_state)->gensec_role == GENSEC_CLIENT) {
reply_code = "AF";
reply_arg = NULL;
} else {
@@ -447,14 +447,18 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode,
case GSS_SPNEGO_SERVER:
if (out_base64) {
x_fprintf(x_stdout, "%s %s %s\n", reply_code, out_base64, reply_arg);
- } else {
+ } else if (reply_arg) {
x_fprintf(x_stdout, "%s %s\n", reply_code, reply_arg);
+ } else {
+ x_fprintf(x_stdout, "%s\n", reply_code);
}
default:
if (out_base64) {
x_fprintf(x_stdout, "%s %s\n", reply_code, out_base64);
- } else {
+ } else if (reply_arg) {
x_fprintf(x_stdout, "%s %s\n", reply_code, reply_arg);
+ } else {
+ x_fprintf(x_stdout, "%s\n", reply_code);
}
}