From bd71dd6cf1aa2de35037072eec608dd18b66ee83 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 3 Aug 2021 14:58:06 +0200 Subject: [PATCH] Handle SSL being already started in LDAP connection Signed-off-by: Thomas Citharel --- lib/service/auth/ldap_authenticator.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/service/auth/ldap_authenticator.ex b/lib/service/auth/ldap_authenticator.ex index 7be6f0995..d4816a30b 100644 --- a/lib/service/auth/ldap_authenticator.ex +++ b/lib/service/auth/ldap_authenticator.ex @@ -215,6 +215,9 @@ defmodule Mobilizon.Service.Auth.LDAPAuthenticator do :ok -> :ok + {:error, :tls_already_started} -> + :ok + error -> Logger.error("Could not start TLS: #{inspect(error)}") end