Good afternoon @peichert,
I have crosschecked the certificates and would not see any differences.
The error log would say:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/univention/connector/ad/__init__.py", line 683, in open_ad
use_ldaps=ldaps, ca_certfile=self.ad_ldap_certificate,
File "/usr/lib/python3/dist-packages/univention/uldap.py", line 288, in __init__
self.__open(ca_certfile)
File "/usr/lib/python3/dist-packages/univention/uldap.py", line 365, in __open
self.__starttls()
File "/usr/lib/python3/dist-packages/univention/uldap.py", line 216, in _decorated
return func(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/univention/uldap.py", line 379, in __starttls
self.lo.start_tls_s()
File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 1220, in start_tls_s
res = self._apply_method_s(SimpleLDAPObject.start_tls_s,*args,**kwargs)
File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 1197, in _apply_method_s
return func(self,*args,**kwargs)
File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 864, in start_tls_s
return self._ldap_call(self._l.start_tls_s)
File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 329, in _ldap_call
reraise(exc_type, exc_value, exc_traceback)
File "/usr/lib/python3/dist-packages/ldap/compat.py", line 44, in reraise
raise exc_value
File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 313, in _ldap_call
result = func(*args,**kwargs)
ldap.CONNECT_ERROR: {'desc': 'Connect error', 'info': 'error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed (unable to get local issuer certificate)'}
If I disable SSL then I have the error that Univention seems to have issues if the email domain != AD domain.
Is this just an “informational error” or a real one?
19.07.2021 17:15:17.971 LDAP (PROCESS): sync to ucs: Resync rejected dn: CN=xxx,OU=Users,OU=xxx,DC=xxx,DC=xx
19.07.2021 17:15:17.974 LDAP (PROCESS): sync to ucs: [ user] [ add] uid=xxx,ou=users,ou=xxx,dc=xxx,dc=xxx
19.07.2021 17:15:18.011 LDAP (ERROR ): Unknown Exception during sync_to_ucs
19.07.2021 17:15:18.011 LDAP (ERROR ): Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/univention/connector/__init__.py", line 1399, in sync_to_ucs
result = self.add_in_ucs(property_type, object, module, position)
File "/usr/lib/python3/dist-packages/univention/connector/__init__.py", line 1175, in add_in_ucs
res = ucs_object.create(serverctrls=serverctrls, response=response)
File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 543, in create
dn = self._create(response=response, serverctrls=serverctrls)
File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 1235, in _create
self._call_checkLdap_on_all_property_syntaxes()
File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 1684, in _call_checkLdap_on_all_property_syntaxes
prop.syntax.checkLdap(self.lo, self.info.get(pname))
File "/usr/lib/python3/dist-packages/univention/admin/syntax.py", line 2136, in checkLdap
raise univention.admin.uexceptions.valueError(self.errMsgDomain % (', '.join(faillist),))
univention.admin.uexceptions.valueError: The domain part of the primary mail address is not in list of configured mail domains: openhab@differentDomain.com
It seems that this could be an issue as I do not see all users from AD.