summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-18 18:04:15 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-18 18:04:15 -0700
commitade5d43c5ceb915dd2210a735a21fd9bed531dd3 (patch)
treed290a70967938518170881dac54781e9158ef4b1
parent716ddc2a897eacd08aed7ff4bee165e418ff63cc (diff)
downloadsamba-ade5d43c5ceb915dd2210a735a21fd9bed531dd3.tar.gz
samba-ade5d43c5ceb915dd2210a735a21fd9bed531dd3.tar.bz2
samba-ade5d43c5ceb915dd2210a735a21fd9bed531dd3.zip
s4-kdc: ignore unknown keytypes
don't fail hdb operations if one of the key types is unknown
-rw-r--r--source4/kdc/hdb-samba4.c6
1 files changed, 6 insertions, 0 deletions
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);