diff options
author | Michael Adam <obnox@samba.org> | 2008-07-29 17:54:01 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-08-01 16:04:43 +0200 |
commit | a6e5a5d71440ff6b66d49abb92200ef30dda9790 (patch) | |
tree | 272bc6d490a9a9cbb611cd164d3cf32f360582ed /source3 | |
parent | e1fee8ca6deaa58dab80030826ce48725f5099e2 (diff) | |
download | samba-a6e5a5d71440ff6b66d49abb92200ef30dda9790.tar.gz samba-a6e5a5d71440ff6b66d49abb92200ef30dda9790.tar.bz2 samba-a6e5a5d71440ff6b66d49abb92200ef30dda9790.zip |
libnet_keytab: add some debug statements to libnet_keytab_search().
Michael
(This used to be commit d3354c3516b56f254583f3dd065302b27d02af2b)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libnet/libnet_keytab.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |