1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

gpo: Fix crash in Cert Auth Enroll RSOP

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
David Mulder 2022-04-12 10:25:51 -06:00 committed by Jeremy Allison
parent 45d76ecad2
commit 6171dfc528

View File

@ -252,6 +252,8 @@ class gp_cert_auto_enroll_ext(gp_pol_ext):
for ca in cas:
policy = 'Auto Enrollment Policy'
cn = ca['cn'][0]
if policy not in output:
output[policy] = {}
output[policy][cn] = {}
output[policy][cn]['CA Certificate'] = \
format_root_cert(ca['cACertificate'][0]).decode()