requarks / wiki

Wiki.js | A modern and powerful wiki app built on Node.js

Home Page:https://js.wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LDAP Strategy not authenticating users

Alchemi1963 opened this issue · comments

Actual behavior

Not authenticating users

Expected behavior

Authenticating users

Steps to reproduce the behavior

Configure LDAP, trying to log in.

So I'm trying to make Wiki.js work with our OpenLDAP implementation, but it doesn't appear to authenticate users; when loggin in I get: Invalid email / username or password.

I already enabled the LDAP Debug flag, but it didn't change anything in the console output...
I triple checked the login data, I verified the search filter directly in our OpenLDAP manager, the mail property also exists and can be requested (tested with ldapsearch). I feel like a tried everything at this point....

I have been at this for the whole day now and at a loss currently.

Does anyone have an idea of what this could be?

image
image

Nevermind, I just figured out the admin bind dn was wrong in two ways...
I would however, like to know why I didn't see anything in the console...

@Alchemi1963 Same issue here. How did you figure it out? Could you share the correct inputs to fields?

@Alchemi1963 Can you please post your fix.

Sorry, I am not sure if my fix would work for you guys. But anyway:
In the admin bind dn I had: cn='admin',dc=bolkhuis.nl,dc=nl
However, the cn doesn't require de quotes and de dc isn't bolkhuis.nl; it's simply bolkhuis...

My advice for you guys, assuming you're still having the issue: triple check your settings, especially stuff like the bind dn.
I checked it like 5 times and I still didn't see it... I just had to look really carefully at all the details.