From a6e5a5d71440ff6b66d49abb92200ef30dda9790 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 29 Jul 2008 17:54:01 +0200 Subject: libnet_keytab: add some debug statements to libnet_keytab_search(). Michael (This used to be commit d3354c3516b56f254583f3dd065302b27d02af2b) --- source3/libnet/libnet_keytab.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3') diff --git a/source3/libnet/libnet_keytab.c b/source3/libnet/libnet_keytab.c index 6fe718bb81..bc3163d6f6 100644 --- a/source3/libnet/libnet_keytab.c +++ b/source3/libnet/libnet_keytab.c @@ -204,6 +204,8 @@ struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *c ret = krb5_kt_start_seq_get(ctx->context, ctx->keytab, &cursor); if (ret) { + DEBUG(10, ("krb5_kt_start_seq_get failed: %s", + error_message(ret))); return NULL; } @@ -231,25 +233,31 @@ struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *c entry = talloc_zero(mem_ctx, struct libnet_keytab_entry); if (!entry) { + DEBUG(3, ("talloc failed\n")); goto fail; } entry->name = talloc_strdup(entry, princ_s); if (!entry->name) { + DEBUG(3, ("talloc_strdup_failed\n")); goto fail; } entry->principal = talloc_strdup(entry, princ_s); if (!entry->principal) { + DEBUG(3, ("talloc_strdup_failed\n")); goto fail; } entry->password = data_blob_talloc(entry, kt_entry.key.contents, kt_entry.key.length); if (!entry->password.data) { + DEBUG(3, ("data_blob_talloc failed\n")); goto fail; } + DEBUG(10, ("found entry\n")); + smb_krb5_kt_free_entry(ctx->context, &kt_entry); SAFE_FREE(princ_s); break; -- cgit