]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
gpo: Supress error caused by ldap Cert Auto Enroll config
authorDavid Mulder <dmulder@suse.com>
Fri, 6 May 2022 15:41:19 +0000 (09:41 -0600)
committerJeremy Allison <jra@samba.org>
Thu, 12 May 2022 17:54:32 +0000 (17:54 +0000)
When the CA url specified on the SYSVOL is 'LDAP:'
this means that configuration should be fetched
from LDAP. This corrects an error message that
was being reported when the URL appeared improper
but really is not. This does not change the
code behavior (it was still working), but
removes the invalid error.

Signed-off-by: David Mulder <dmulder@suse.com>
Revewed-by: Andreas Schneider <asn@samba.org>
python/samba/gp_cert_auto_enroll_ext.py

index e6c40462d3321ba92e77898289f1b1d96157c363..db85c97fe66f42384a8908c1e080b80070048910 100644 (file)
@@ -116,7 +116,7 @@ def obtain_end_point_information(entries):
             ca['name'] = name
             ca['hostname'] = m.group('server')
             ca['auth'] = m.group('auth')
-        else:
+        elif ca['URL'].lower() != 'ldap:':
             edata = { 'endpoint': ca['URL'] }
             log.error('Failed to parse the endpoint', edata)
     end_point_information = \