LDAP: Check for errors of TLS initialisation