From 0f94a385807d7d018eaa97178d06fca4a5ad98cf Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 29 Jul 2008 13:32:17 +0200 Subject: libnet keytab: test for matching enctype in libnet_keytab_search(). Michael (This used to be commit 484b35f319178f360e406a1bc725dca2e9d95ee3) --- source3/libnet/libnet_keytab.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/libnet') diff --git a/source3/libnet/libnet_keytab.c b/source3/libnet/libnet_keytab.c index e51cd05572..cc51c29326 100644 --- a/source3/libnet/libnet_keytab.c +++ b/source3/libnet/libnet_keytab.c @@ -167,6 +167,11 @@ struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *c continue; } + if (kt_entry.key.enctype != enctype) { + smb_krb5_kt_free_entry(ctx->context, &kt_entry); + continue; + } + ret = smb_krb5_unparse_name(ctx->context, kt_entry.principal, &princ_s); if (ret) { smb_krb5_kt_free_entry(ctx->context, &kt_entry); -- cgit