summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTaylan Kammer <taylan.kammer@gmail.com>2024-07-10 07:21:37 +0200
committerTaylan Kammer <taylan.kammer@gmail.com>2024-07-10 09:22:58 +0200
commit03c3c58d74217edd0822b68772eb76a59451fe50 (patch)
tree47a3b76894cc0cc4fc55988e9b78b9c549263863 /lib
parentef2ada59e0b4a1b203b6edd1969518f63bf5eff5 (diff)
downloadpleroma-03c3c58d74217edd0822b68772eb76a59451fe50.tar.gz
pleroma-03c3c58d74217edd0822b68772eb76a59451fe50.zip
LDAP Authenticator: Improve error reporting.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/auth/ldap_authenticator.ex6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/web/auth/ldap_authenticator.ex b/lib/pleroma/web/auth/ldap_authenticator.ex
index c2c5eb1e5..ea5620cf6 100644
--- a/lib/pleroma/web/auth/ldap_authenticator.ex
+++ b/lib/pleroma/web/auth/ldap_authenticator.ex
@@ -91,7 +91,8 @@ defmodule Pleroma.Web.Auth.LDAPAuthenticator do
end
error ->
- error
+ Logger.error("Could not bind LDAP user #{name}: #{inspect(error)}")
+ {:error, {:ldap_bind_error, error}}
end
end
@@ -111,7 +112,8 @@ defmodule Pleroma.Web.Auth.LDAPAuthenticator do
try_register(name, attributes)
error ->
- error
+ Logger.error("Couldn't register user because LDAP search failed: #{inspect(error)}")
+ {:error, {:ldap_search_error, error}}
end
end