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 username formatting option to support OpenLDAP and others #246

Merged
merged 1 commit into from Jun 20, 2018

Conversation

tlied2
Copy link
Contributor

@tlied2 tlied2 commented Dec 17, 2017

While attempting to use LDAP auth with my OpenLDAP server, I ran into #230 as well. This PR is meant to add more flexible username formatting to support additional LDAP implementations.

This PR supersedes #242 as I discovered I really should have branched first.

I've also simplified the changeset somewhat, at the expense of a new "user-format" config entry being required (if preferred, I'm happy to change it back to the old approach of adding an getOptionalSetting).

I've also added a DEBUG log statement to print the username being used for the login, as well as additional examples and notes in the application.conf.

Note that these changes adjust the behavior of the email type username case such that user@test.com will be passed through unchanged rather than being converted to user@test.com@domain.com; I assume this is preferable to the old behavior.

@curantes
Copy link

Can this PR please be merged, we use FreeIPA as LDAP and we also need this to be able to use LDAP authentication with cerebro.

@sangdrax8
Copy link

Also using FreeIPA and would like this change pulled in asap.

@mderen
Copy link

mderen commented Jun 4, 2018

+1 on this PR.

@lmenezes lmenezes merged commit 3cfa2e1 into lmenezes:master Jun 20, 2018
@lmenezes
Copy link
Owner

thanks 👍

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.

None yet

5 participants