s4-rpc: show binding string in failed rpc binds
authorAndrew Tridgell <tridge@samba.org>
Wed, 21 Sep 2011 23:56:27 +0000 (09:56 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 22 Sep 2011 00:00:49 +0000 (10:00 +1000)
this makes debugging some RPC auth issues easier

source4/librpc/rpc/dcerpc_util.c

index 2cd94999e35ddc5889786b9822100bbae3e2307d..1217e3460773cc4df7f1c2ef8d34cebe7b83b344 100644 (file)
@@ -656,7 +656,8 @@ NTSTATUS dcerpc_pipe_auth_recv(struct composite_context *c, TALLOC_CTX *mem_ctx,
        status = composite_wait(c);
        if (!NT_STATUS_IS_OK(status)) {
                char *uuid_str = GUID_string(s->pipe, &s->table->syntax_id.uuid);
-               DEBUG(0, ("Failed to bind to uuid %s - %s\n", uuid_str, nt_errstr(status)));
+               DEBUG(0, ("Failed to bind to uuid %s for %s %s\n", uuid_str,
+                         dcerpc_binding_string(uuid_str, s->binding), nt_errstr(status)));
                talloc_free(uuid_str);
        } else {
                talloc_steal(mem_ctx, s->pipe);