summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-29 13:32:17 +0200
committerMichael Adam <obnox@samba.org>2008-08-01 16:04:42 +0200
commit0f94a385807d7d018eaa97178d06fca4a5ad98cf (patch)
tree41d066d80a1f69fca154de1b4a41ce8131d57bf2 /source3
parent31c67f939f37bb77a55dcbb28d8e2f17555131e1 (diff)
downloadsamba-0f94a385807d7d018eaa97178d06fca4a5ad98cf.tar.gz
samba-0f94a385807d7d018eaa97178d06fca4a5ad98cf.tar.bz2
samba-0f94a385807d7d018eaa97178d06fca4a5ad98cf.zip
libnet keytab: test for matching enctype in libnet_keytab_search().
Michael (This used to be commit 484b35f319178f360e406a1bc725dca2e9d95ee3)
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_keytab.c5
1 files changed, 5 insertions, 0 deletions
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);