1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

s4-kdc: ignore unknown keytypes

don't fail hdb operations if one of the key types is unknown
This commit is contained in:
Andrew Tridgell 2009-09-18 18:04:15 -07:00
parent 716ddc2a89
commit ade5d43c5c

View File

@ -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);