discourse-ldap-auth
discourse-ldap-auth copied to clipboard
username field
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?
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