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

Add login with domain name instead of dn #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benklett
Copy link

Modified the behaviour of send_ldap_request to allow login with domain
and username. If provider_info[:domain] is set and auth_method is user,
this behaviour will trigger.

Modified the behaviour of send_ldap_request to allow login with domain
and username. If provider_info[:domain] is set and auth_method is user,
this behaviour will trigger.
benklett added a commit to benklett/greenlight that referenced this pull request Jul 23, 2020
With the new environment variable LDAP_DOMAIN. It is only used, if the
auth_method user is selected. Then the domain session controller sets
the domain field of the ldap_config which is then used in
blindsidenetworks/bn-ldap-authentication#8 to build the bindRequest
username like so: DOMAIN\USERNAME.
benklett added a commit to benklett/greenlight that referenced this pull request Jul 23, 2020
With the new environment variable LDAP_DOMAIN. It is only used, if the
auth_method user is selected. Then the domain session controller sets
the domain field of the ldap_config which is then used in
blindsidenetworks/bn-ldap-authentication#8 to build the bindRequest
username like so: DOMAIN\USERNAME.
benklett added a commit to benklett/greenlight that referenced this pull request Jul 23, 2020
With the new environment variable LDAP_DOMAIN. It is only used, if the
auth_method user is selected. Then the domain session controller sets
the domain field of the ldap_config which is then used in
blindsidenetworks/bn-ldap-authentication#8 to build the bindRequest
username like so: DOMAIN\USERNAME.
else
username = provider_info[:uid] + '=' + user_params[:username] + ',' + provider_info[:base]
end
auth = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In GitHub the line is too much indented. It should use the same level as end.

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

Successfully merging this pull request may close these issues.

2 participants