LDAP authentication does not work in Docker #671

Open
opened 2023-12-24 11:59:39 +00:00 by aitzol · 0 comments

Your setup

Docker

Extra details

Alpine linux

Version

3.18.2

PostgreSQL version

14

What were you trying to do?

I have installed an instance of Akkoma in Docker following the official documentation and it works fine in general. However, I have a problem with LDAP authentication. Despite following the configuration steps indicated in the cheat sheet, setting up the instance through the configuration file and also through the admin-fe, I am not able to log in against the LDAP server. I have tried several config options but I can't get it.

I think there is a problem with the eldap module, since in the logs I get the following error:
[error] Internal server error: %UndefinedFunctionError{module: :eldap, function: :open, arity: 2, reason: nil, message: nil}

Is there a way to force install this eldap module in Docker considering that it no longer exists in Alpine Linux repositories?

What did you expect to happen?

Get users to be able to authenticate through LDAP.

What actually happened?

LDAP authentication does not work.

Logs

akkoma-akkoma-1  | 10:16:53.622 [error] Ranch listener Pleroma.Web.Endpoint.HTTP, connection process #PID<0.1035.0>, stream 49 had its request process #PID<0.1194.0> exit with reason {{%UndefinedFunctionError{module: :eldap, function: :open, arity: 2, reason: nil, message: nil}, [{:eldap, :open, [[~c"ldap.example.org"], [port: 389, ssl: false, timeout: 10000]], []}, {Pleroma.Web.Auth.LDAPAuthenticator, :ldap_user, 2, [file: ~c"instance/modules/akkoma-contrib-authenticator-ldap/ldap_authenticator.ex", line: 72]}, ... ]

Severity

I cannot use the software

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup Docker ### Extra details Alpine linux ### Version 3.18.2 ### PostgreSQL version 14 ### What were you trying to do? I have installed an instance of Akkoma in Docker following the official [documentation](https://docs.akkoma.dev/stable/installation/docker_en/) and it works fine in general. However, I have a problem with LDAP authentication. Despite following the configuration steps indicated in the [cheat sheet](https://docs.akkoma.dev/stable/configuration/cheatsheet/#ldap), setting up the instance through the configuration file and also through the admin-fe, I am not able to log in against the LDAP server. I have tried several config options but I can't get it. I think there is a problem with the [eldap](https://www.erlang.org/doc/man/eldap.html) module, since in the logs I get the following error: `[error] Internal server error: %UndefinedFunctionError{module: :eldap, function: :open, arity: 2, reason: nil, message: nil}` Is there a way to force install this eldap module in Docker considering that it no longer exists in Alpine Linux repositories? ### What did you expect to happen? Get users to be able to authenticate through LDAP. ### What actually happened? LDAP authentication does not work. ### Logs ```shell akkoma-akkoma-1 | 10:16:53.622 [error] Ranch listener Pleroma.Web.Endpoint.HTTP, connection process #PID<0.1035.0>, stream 49 had its request process #PID<0.1194.0> exit with reason {{%UndefinedFunctionError{module: :eldap, function: :open, arity: 2, reason: nil, message: nil}, [{:eldap, :open, [[~c"ldap.example.org"], [port: 389, ssl: false, timeout: 10000]], []}, {Pleroma.Web.Auth.LDAPAuthenticator, :ldap_user, 2, [file: ~c"instance/modules/akkoma-contrib-authenticator-ldap/ldap_authenticator.ex", line: 72]}, ... ] ``` ### Severity I cannot use the software ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
aitzol added the
bug
label 2023-12-24 11:59:39 +00:00
aitzol changed title from [bug] to LDAP authentication does not work in Docker 2023-12-24 12:01:18 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#671
No description provided.