>From 59af9eeb03d45253d28c6349598cbcf7cabdf806 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Wed, 22 Jan 2014 12:49:44 +0000 Subject: [PATCH] log winbind version (when requested) in winbindd log winbindd currently only logs the INTERFACE version request, it would be useful to additionally have the version returned in the log also. Signed-off-by: Noel Power Reviewed-by: Jim McDonough --- source3/winbindd/winbindd_misc.c | 4 ++-- source4/winbind/wb_samba3_cmd.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/winbindd_misc.c b/source3/winbindd/winbindd_misc.c index 29d6a26..fa4907c 100644 --- a/source3/winbindd/winbindd_misc.c +++ b/source3/winbindd/winbindd_misc.c @@ -391,8 +391,8 @@ void winbindd_info(struct winbindd_cli_state *state) void winbindd_interface_version(struct winbindd_cli_state *state) { - DEBUG(3, ("[%5lu]: request interface version\n", - (unsigned long)state->pid)); + DEBUG(3, ("[%5lu]: request interface version (version = %d)\n", + (unsigned long)state->pid, WINBIND_INTERFACE_VERSION)); state->response->data.interface_version = WINBIND_INTERFACE_VERSION; request_ok(state); diff --git a/source4/winbind/wb_samba3_cmd.c b/source4/winbind/wb_samba3_cmd.c index 091e93e..9ec3c4b 100644 --- a/source4/winbind/wb_samba3_cmd.c +++ b/source4/winbind/wb_samba3_cmd.c @@ -182,6 +182,8 @@ static void wbsrv_samba3_async_epilogue(NTSTATUS status, NTSTATUS wbsrv_samba3_interface_version(struct wbsrv_samba3_call *s3call) { + DEBUG(3, ("request interface version (version = %d)\n", WINBIND_INTERFACE_VERSION)); + s3call->response->result = WINBINDD_OK; s3call->response->data.interface_version = WINBIND_INTERFACE_VERSION; return NT_STATUS_OK; -- 1.8.1.4