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

username field #60

Open
krojowska opened this issue May 24, 2021 · 1 comment
Open

username field #60

krojowska opened this issue May 24, 2021 · 1 comment

Comments

@krojowska
Copy link

I connect users from my work place via LDAP to Discourse. It take credentials from Active Directory. Currently username takes me from the uid field of AD (which is shown as a number) and I want to display displayName (name and surname) there. Where can I change it?

And my second question: Is there any possibility to set ldap login to default?

@jonmbake
Copy link
Owner

jonmbake commented May 24, 2021

Currently username takes me from the uid field of AD (which is shown as a number) and I want to display displayName (name and surname) there. Where can I change it?

You should be able to update here: https://github.com/jonmbake/discourse-ldap-auth/blob/master/lib/ldap_user.rb#L7. auth_info is the LDAP response. This provides info on the underlying lib being used: https://github.com/omniauth/omniauth-ldap

Is there any possibility to set ldap login to default?

There's some info in the readme: https://github.com/jonmbake/discourse-ldap-auth#other-tips

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

2 participants