-
Notifications
You must be signed in to change notification settings - Fork 53
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_user_create_mode 'auto' does work without groups #74
Comments
@ziima In the previous Discourse versions, Discourse would create the User account if an auth plugin returned a valid authentication result and the user account did not exist. It's weird that this stopped working... The only reason |
@davidtaylorhq Any ideas why user creation would fail after a successful auth here? Did anything change with |
I'm not aware of any recent changes to this area. I'd recommend checking:
|
I got back to this, since my workaround was removed after an update.
Still no idea, why it doesn't work. |
I run into a serious problem with Discourse login using LDAP. When a new user tries to login, he is redirected back to a login page without any message. Logs confirmed ldap passed successfully, but user wasn't created in Discourse. Existing users worked fine.
After debugging I discovered that ldap plugin doesn't create users if they have no groups provided by LDAP. I'm not quite sure what changed in our LDAP instance configuration, since it is not entirely under our control, but may have lead to a different data returned by LDAP regarding user groups.
Anyway I was able to workaround by this patch
All in all, I find it weird
user
instance is created only ifgroups
are present. I'd expect theuser
object is created regardless.Configuration:
ldap filter
is not setI would provide a patch, but I can't write in Ruby and this workaround is as far as I could get.
The text was updated successfully, but these errors were encountered: