LDAP auth saying invald credentals
I have a config similar to #1646 (closed)
environment
- Installation type:
- self build docker image from https://github.com/angristan/docker-pleroma
- ldap authentication
import Config
config :pleroma, :instance,
registrations_open: false
config :pleroma, Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator
config :pleroma, :ldap,
enabled: true,
host: "host",
port: 389,
ssl: false,
tls: false,
base: "cn=users,cn=accounts,dc=server,dc=com",
uid: "uid"
loging into the webui returns invalid credentials trying the command listed in the previous issue ends with
mix pleroma.user new user user@server.com
Compiling 22 files (.ex)
== Compilation error in file lib/phoenix-1.5.9/priv/templates/phx.gen.channel/channel.ex ==
** (SyntaxError) lib/phoenix-1.5.9/priv/templates/phx.gen.channel/channel.ex:1:13: syntax error before: '='
(elixir 1.11.4) lib/kernel/parallel_compiler.ex:314: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/7
I went to a remote device to see if the mail attribute shows when not authenticating against freeipa's ldap
ldapsearch -x -b "cn=users,cn=accounts,dc=server,dc=com" -H ldap://host
and it does not show the mail attribute. After allowing anonymous read access it does show
ipa permission-add 'Mail readable by anon' --type=user --attrs=mail --bindtype=anonymous --permissions=read
But account creation/login still fails