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_user_create_mode 'auto' does not seems to work #51

Open
pixrl opened this issue Mar 23, 2020 · 5 comments
Open

ldap_user_create_mode 'auto' does not seems to work #51

pixrl opened this issue Mar 23, 2020 · 5 comments

Comments

@pixrl
Copy link

pixrl commented Mar 23, 2020

Hello,
Using version 2.5.0.beta2
I am trying to set up discourse with Active Directory. When I use 'LDAP Authentication' I am getting redirected to the discourse home page. There are no window called 'Create new account'
It seems like 'auto' mode does not work.

When I create account with the same email then I can use AD credentials to log in and it is working fine. But I would like to have an account created automatically.

Any suggestions?

@jonmbake
Copy link
Owner

Hi.

Did you clear your browsers cookies? Is there anything logged in the server log?

@raucao
Copy link

raucao commented Oct 12, 2020

We just set up a new Discourse with this plugin, and the auto creation doesn't work for us either. Instead of creating the account automatically, there is an interstitial popup asking to choose a real name and then press a button to actually create the account.

Is there a way to turn this off and just log users in directly? Or maybe I misunderstood the explanation of auto mode?

@jonmbake
Copy link
Owner

@skddc I believe if you turn off Use real names in your Admin Settings, it will automatically create the account and will not prompt for real name.

@jonmbake
Copy link
Owner

A way to update the plugin to support real name might be to update the User creation code, e.g.

@user = User.create!(name: self.name, email: self.email, username: self.username)
, to set user#full_name: https://github.com/discourse/discourse/blame/721ee3642558d960db9345c6238a457aa7f5d674/app/models/user.rb#L106.

It would require a bit more investigation.

@raucao
Copy link

raucao commented Oct 13, 2020

@skddc I believe if you turn off Use real names in your Admin Settings, it will automatically create the account and will not prompt for real name.

Thanks! I had another look and also found this one:

Screenshot from 2020-10-13 11-31-31

The popup is gone now.

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

3 participants