https://github.com/lldap/lldap logo
LLDAP Users cannot log in to Nextcloud
# troubleshooting
a
message has been deleted
a
I'm at my wits' end. This should, by all means, work, but I cannot figure out why it isn't working. Nextcloud can connect to LLDAP. It finds users, it finds groups, it sees group mappings, but I simply cannot log in to Nextcloud using my username
akshay
and my LLDAP password. I CAN login using PocketID via OIDC, so the account for sure works, it's just the login with ID & Password. When I try to log in, the nextcloud login page simply reloads and nothing happens. Nextcloud's log says
Warning    user_ldap Bind failed: 49: Invalid credentials
and
Warning no app in context Login failed: akshay (Remote IP: 192.168.2.3)
The only other "strange" thing that I can notice is: When I log in with a local nextcloud account, the login page's (
https://nextcloud.mydomain.com/login
) changes to
https://nextcloud.mydomain.com/apps/dashboard/
on successful login. If I enter a wrong password, the URL changes to
https://nextcloud.mydomain.com/login?direct=1&user=admin
. However, for an LLDAP user, the URL changes to
https://nextcloud.mydomain.com/login?redirect_url=/apps/dashboard/
when using a correct password and to
https://nextcloud.mydomain.com/login?redirect_url=/apps/dashboard/&direct=1&user=akshay
when using the wrong password. Verbose LLDAP logs attached for correct & wrong passwords. The response from LLDAP seems to be appropriate from what I can gauge. https://cdn.discordapp.com/attachments/1381650032763207680/1381650045484404838/image.png?ex=68484960&is=6846f7e0&hm=e3c382b8af9d94a353d41845c1ba1293c0c62a59aa9493de92a87829ce9cefd5& https://cdn.discordapp.com/attachments/1381650032763207680/1381650045727932487/image.png?ex=68484960&is=6846f7e0&hm=18ae2c21bd6226c654f30268b04f832f2b6cca30d1fd2471e959710662e6a1d9& https://cdn.discordapp.com/attachments/1381650032763207680/1381650046017077371/image.png?ex=68484960&is=6846f7e0&hm=281d4fa0f0fa88de86ed7e026aabe7d9e41797556c09b14b7098cc6865e06330& https://cdn.discordapp.com/attachments/1381650032763207680/1381650046298357890/image.png?ex=68484960&is=6846f7e0&hm=159e9945df16805c899a4526322d5c316748d1ae7324e20304ab21c21b52e3ab& https://cdn.discordapp.com/attachments/1381650032763207680/1381650046562603028/image.png?ex=68484960&is=6846f7e0&hm=2d8f42d6a0cc651b241771c5d928fa82f3966ecdc02622b45047b3ff63667e7d& https://cdn.discordapp.com/attachments/1381650032763207680/1381650046822383657/lldap_log_correct_password.txt?ex=68484960&is=6846f7e0&hm=3abf39f7653fefbd345a99ad7c090624ca61bf5da55535eee8bc67cff0bd0501& https://cdn.discordapp.com/attachments/1381650032763207680/1381650047204196463/image.png?ex=68484961&is=6846f7e1&hm=a8db522acf4303d744f74a788cd059f99a651d09a540cb16c9e6b35d71c074fe& https://cdn.discordapp.com/attachments/1381650032763207680/1381650047447601232/lldap_log_wrong_password.txt?ex=68484961&is=6846f7e1&hm=80a77eaa541e3dc6f5743ba2fe6d375ee1cc2752a046e30e9a2394865257ea99& https://cdn.discordapp.com/attachments/1381650032763207680/1381650047917101127/image.png?ex=68484961&is=6846f7e1&hm=837acae7799e10591de9ce8b2c824d5baf6230daefa5e97b31a2ed6304fa4ef6&
e
Ensure that your ldap users have a firstname, lastname and email.
a
They all do.
Fucking Discord... ^ but that's my "configuration"
a
Couple of questions here: Do I enter the name of the new config ID on line 7 (
NEW_CONFIG_ID="$(nextcloud-occ ldap:create-empty-config -p)"
) So:
s01="$(nextcloud-occ ldap:create-empty-config -p)"
And on line 10,
BIND_USERPASS="$(cat $CREDENTIALS_DIRECTORY/lldap-bind-user-pass)"
Do I specify the password here? So:
my-ldap-password="$(cat $CREDENTIALS_DIRECTORY/lldap-bind-user-pass)"
Turns out that this was the Nextcloud OpenID Connect Backend's fault. Switching to the OIDC Plugin by Pulsejet fixed everything - now, logging in with LLDAP UserID+Password as well as logging in with PocketID both work perfectly.
2 Views