discourse-ldap-auth icon indicating copy to clipboard operation
discourse-ldap-auth copied to clipboard

username field

Open krojowska opened this issue 4 years ago • 1 comments
trafficstars

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?

krojowska avatar May 24 '21 05:05 krojowska

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

jonmbake avatar May 24 '21 19:05 jonmbake