From ade5d43c5ceb915dd2210a735a21fd9bed531dd3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 18 Sep 2009 18:04:15 -0700 Subject: s4-kdc: ignore unknown keytypes don't fail hdb operations if one of the key types is unknown --- source4/kdc/hdb-samba4.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source4/kdc/hdb-samba4.c b/source4/kdc/hdb-samba4.c index 502b4e0903..4062e13f6c 100644 --- a/source4/kdc/hdb-samba4.c +++ b/source4/kdc/hdb-samba4.c @@ -395,6 +395,12 @@ static krb5_error_code hdb_samba4_message2entry_keys(krb5_context context, pkb4->keys[i].value->data, pkb4->keys[i].value->length, &key.key); + if (ret == KRB5_PROG_ETYPE_NOSUPP) { + DEBUG(2,("Unsupported keytype ignored - type %u\n", + pkb4->keys[i].keytype)); + ret = 0; + continue; + } if (ret) { if (key.salt) { free_Salt(key.salt); -- cgit