Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP Auth against Active Directory results in "You are not authorized to login" error #1232

Closed
RikyLee opened this issue Nov 19, 2019 · 6 comments
Assignees

Comments

@RikyLee
Copy link

RikyLee commented Nov 19, 2019

Question
Actual behavior
Logging in through web interface fails with users that exist in ldap,and the error message is "You are not authorized to login"

Expected behavior
Login should succeed

This works:
ldapsearch -H ldap://ldap.xxx.com:389 -D "CN=visitor,CN=Users,DC=xxx,DC=com" -w xxxxx -b "OU=voice,DC=xxx,DC=com" "(samaccountname=wikijs)"

my config:

url: ldap://ldap.xxx.com:389
bindDn: CN=visitor,CN=Users,DC=xxx,DC=com
bindCredentials: <ACTUAL_PASSWORD_INSERTED>
searchBase: OU=Voice,DC=xxx,DC=com
searchFilter: (&(objectclass=person)(objectclass=user)(|(samaccountname={{username}})(mail={{username}})))

Host Info
OS: Docker
Wiki.js version: 2
Database engine: mysql 5.7

@NGPixel
Copy link
Member

NGPixel commented Nov 19, 2019

You need to enable self-registration in the LDAP module.

@NGPixel NGPixel closed this as completed Nov 19, 2019
@Yuri-Zizeko
Copy link

self-registration enable LDAP module
self-registration enable Local module
The error is repeated

@RikyLee
Copy link
Author

RikyLee commented Nov 21, 2019

Yes,it's worked,tks!

@Yuri-Zizeko
Copy link

Perhaps you need to install additional software?

@denisbonate
Copy link

denisbonate commented Apr 14, 2020

Help me please?

image

@RikyLee
Copy link
Author

RikyLee commented Apr 15, 2020

@denisbonate enabled registration option on LDAP module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants