libcli/auth: add netlogon_creds_cli_debug_string()
authorStefan Metzmacher <metze@samba.org>
Thu, 9 Feb 2017 20:47:52 +0000 (21:47 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 21 Feb 2017 15:09:21 +0000 (16:09 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12262

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
libcli/auth/netlogon_creds_cli.c
libcli/auth/netlogon_creds_cli.h

index 93ec1bfd194f8f2d2b3814de178f53838b030057..d55142e3ee2322e7de6e63d3229696c977131acd 100644 (file)
@@ -484,6 +484,14 @@ NTSTATUS netlogon_creds_cli_context_tmp(const char *client_computer,
        return NT_STATUS_OK;
 }
 
+char *netlogon_creds_cli_debug_string(
+               const struct netlogon_creds_cli_context *context,
+               TALLOC_CTX *mem_ctx)
+{
+       return talloc_asprintf(mem_ctx, "netlogon_creds_cli:%s",
+                              context->db.key_name);
+}
+
 enum dcerpc_AuthLevel netlogon_creds_cli_auth_level(
                struct netlogon_creds_cli_context *context)
 {
index 006367a788deedb6487e8d91928974f0d3de206d..949e03bd46096c643c8d42c1f65d77b1586b3cc2 100644 (file)
@@ -52,6 +52,10 @@ NTSTATUS netlogon_creds_cli_context_tmp(const char *client_computer,
                                TALLOC_CTX *mem_ctx,
                                struct netlogon_creds_cli_context **_context);
 
+char *netlogon_creds_cli_debug_string(
+               const struct netlogon_creds_cli_context *context,
+               TALLOC_CTX *mem_ctx);
+
 enum dcerpc_AuthLevel netlogon_creds_cli_auth_level(
                struct netlogon_creds_cli_context *context);