summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDavid Mulder <dmulder@suse.com>2022-05-06 09:46:44 -0600
committerJeremy Allison <jra@samba.org>2022-05-12 18:45:41 +0000
commitdcdc9859b90132795e0a266c8722e09d02cf6be2 (patch)
tree05510ac73f1b8cb2697b3e3fb967ca1862e89083 /python
parent144878ce45cad445f04ff180d647317b67c0a2e6 (diff)
downloadsamba-dcdc9859b90132795e0a266c8722e09d02cf6be2.tar.gz
samba-dcdc9859b90132795e0a266c8722e09d02cf6be2.tar.bz2
samba-dcdc9859b90132795e0a266c8722e09d02cf6be2.zip
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
Diffstat (limited to 'python')
-rw-r--r--python/samba/gp_cert_auto_enroll_ext.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/samba/gp_cert_auto_enroll_ext.py b/python/samba/gp_cert_auto_enroll_ext.py
index db85c97fe66..7b604e5065d 100644
--- a/python/samba/gp_cert_auto_enroll_ext.py
+++ b/python/samba/gp_cert_auto_enroll_ext.py
@@ -119,6 +119,7 @@ def obtain_end_point_information(entries):
elif ca['URL'].lower() != 'ldap:':
edata = { 'endpoint': ca['URL'] }
log.error('Failed to parse the endpoint', edata)
+ return {}
end_point_information = \
group_and_sort_end_point_information(end_point_information.values())
return end_point_information