-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP auth no longer working after upgrade to Ejabberd Docker 20.07 #3350
Comments
Do you know what Erlang version is used by ejabberd? Looking at the error message and the source code, ejabberd's
For example, in Debian, the library pg.beam is included in the package erlang-base: |
I opened a debug shell and it states that it is using Erlang/OTP 22, so is this a bug with the docker container that it is not supplying the correct version? |
Um, maybe Docker is missing some of the changes done in rebar.config Can you please apply this patch to ejabberd and comment if it helps? diff --git a/mix.exs b/mix.exs
index afc645eb3..00d7e0a57 100644
--- a/mix.exs
+++ b/mix.exs
@@ -66,7 +66,10 @@ defmodule Ejabberd.Mixfile do
cond_options() ++
Enum.map(includes, fn (path) -> {:i, path} end) ++
if_version_above('20', [{:d, :DEPRECATED_GET_STACKTRACE}]) ++
+ if_version_below('21', [{:d, :USE_OLD_HTTP_URI}]) ++
if_version_below('22', [{:d, :LAGER}]) ++
+ if_version_below('23', [{:d, :USE_OLD_CRYPTO_HMAC}]) ++
+ if_version_below('23', [{:d, :USE_OLD_PG2}]) ++
if_function_exported(:erl_error, :format_exception, 6, [{:d, :HAVE_ERL_ERROR}])
defines = for {:d, value} <- result, do: {:d, value}
result ++ [{:d, :ALL_DEFS, defines}] |
I applied the patch and rebuilt the docker image and LDAP auth is working as expected now, sorry but I only now had the time to test. |
Thanks! I've applied the changes to ejabberd's git repo. |
Issue
After upgrading Ejabberd Docker container from 20.04 to 20.07 LDAP has completely stopped working, reverting back to 20.04 everything works normally. No changes have been made to configuration, and no other errors or warnings show up in logs other than below. Have been running and upgrading Ejabberd docker since 19.xx version without issues.
Environment
LDAP Config
Error from log
The text was updated successfully, but these errors were encountered: