mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
gpo: Halt Cert Auto Enroll process if data corrupted
If the CA URL cannot be processed, then halt processing. Otherwise we'll end up in a broken state later when trying to read from the end points with missing data. Signed-off-by: David Mulder <dmulder@suse.com> Revewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 12 18:45:41 UTC 2022 on sn-devel-184
This commit is contained in:
parent
144878ce45
commit
dcdc9859b9
@ -119,6 +119,7 @@ def obtain_end_point_information(entries):
|
|||||||
elif ca['URL'].lower() != 'ldap:':
|
elif ca['URL'].lower() != 'ldap:':
|
||||||
edata = { 'endpoint': ca['URL'] }
|
edata = { 'endpoint': ca['URL'] }
|
||||||
log.error('Failed to parse the endpoint', edata)
|
log.error('Failed to parse the endpoint', edata)
|
||||||
|
return {}
|
||||||
end_point_information = \
|
end_point_information = \
|
||||||
group_and_sort_end_point_information(end_point_information.values())
|
group_and_sort_end_point_information(end_point_information.values())
|
||||||
return end_point_information
|
return end_point_information
|
||||||
|
Loading…
x
Reference in New Issue
Block a user