s4:kdc: Pass supported enctypes to samba_kdc_set_random_keys()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 22 Mar 2022 20:47:53 +0000 (09:47 +1300)
committerStefan Metzmacher <metze@samba.org>
Thu, 24 Mar 2022 09:19:33 +0000 (09:19 +0000)
commit548169a3e20cd6ee4a5d9320b85b2dea4ffe0eea
tree7bd9ea276a51f9cc60853d9971f853b99b98fcc8
parent2d9fd3855f3c50c17111a72f6247aabd02e575be
s4:kdc: Pass supported enctypes to samba_kdc_set_random_keys()

We should not supprise the callers by returning more keys than we asked to
filter by and avoids duplicating the protected_users logic within
samba_kdc_set_fixed_keys().

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/kdc/db-glue.c