module :eldap is not available after running a "mix release"-ed app version
Before running an "released" version of the app, I have modified the mobilizon/releases/1.0.3/releases.exs
file provided, as a consequence of !774 (merged). I wanted it to test LDAP auth, by adding this to releases.exs
:
config :mobilizon, Mobilizon.Service.Auth.Authenticator, Mobilizon.Service.Auth.LDAPAuthenticator
config :mobilizon, :ldap,
enabled: true,
host: "127.0.0.1",
port: 389,
ssl: false,
# sslopts: [],
tls: false,
# tlsopts: [],
base: "ou=users,dc=yunohost,dc=org",
uid: "uid",
require_bind_for_search: false,
bind_uid: nil,
bind_password: nil
App runs perfectly, but when I try to authenticate, I can see this within the logs:
Jan 16 19:57:34 yunohost.local mobilizon[1713]: Server: events.yunohost.local:80 (http)
Jan 16 19:57:34 yunohost.local mobilizon[1713]: Request: POST /api
Jan 16 19:57:34 yunohost.local mobilizon[1713]: ** (exit) an exception was raised:
Jan 16 19:57:34 yunohost.local mobilizon[1713]: ** (UndefinedFunctionError) function :eldap.open/2 is undefined (module :eldap is not available)
Jan 16 19:57:34 yunohost.local mobilizon[1713]: :eldap.open(['127.0.0.1'], [port: 389, ssl: false, timeout: 10000])
Jan 16 19:57:34 yunohost.local mobilizon[1713]: (mobilizon 1.0.3) lib/service/auth/ldap_authenticator.ex:57: Mobilizon.Ser
Jan 16 19:57:34 yunohost.local mobilizon[1713]: (mobilizon 1.0.3) lib/service/auth/ldap_authenticator.ex:27: Mobilizon.Ser
Jan 16 19:57:34 yunohost.local mobilizon[1713]: (mobilizon 1.0.3) lib/service/auth/authenticator.ex:45: Mobilizon.Service.
Jan 16 19:57:34 yunohost.local mobilizon[1713]: (mobilizon 1.0.3) lib/graphql/resolvers/user.ex:70: Mobilizon.GraphQL.Reso
Jan 16 19:57:34 yunohost.local mobilizon[1713]: (absinthe 1.5.5) lib/absinthe/resolution.ex:209: Absinthe.Resolution.call/
Jan 16 19:57:34 yunohost.local mobilizon[1713]: (absinthe 1.5.5) lib/absinthe/phase/document/execution/resolution.ex:230:
I can see no trace of eldap
in mix.lock
, so I'm not sure where I misconfigured things :-/