log winbind version (when requested) in winbindd log
authorNoel Power <noel.power@suse.com>
Wed, 22 Jan 2014 12:49:44 +0000 (12:49 +0000)
committerDavid Disseldorp <ddiss@samba.org>
Wed, 22 Jan 2014 20:57:04 +0000 (21:57 +0100)
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 <noel.power@suse.com>
Reviewed-by: Jim McDonough <jmcd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Wed Jan 22 21:57:04 CET 2014 on sn-devel-104

source3/winbindd/winbindd_misc.c
source4/winbind/wb_samba3_cmd.c

index 29d6a2604866a15a15dce441fe0d65ae715e6795..fa4907c7d6aebc3785e87521665788751aa68bec 100644 (file)
@@ -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);
index 091e93ef5551db2ddac063b82dc7f4035056807e..9ec3c4b0ccdd6c058a545316b1fd7431d2309458 100644 (file)
@@ -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;