mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +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:
parent
716ddc2a89
commit
ade5d43c5c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user