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

Ldap form based login #175

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

stamfest
Copy link

This branch creates the machinery for a form-based login. It also implements form-based login using a configured LDAP directory. To implement this, a HTTP session is required. Some important session cookie parameters can be configured to allow for integration of either multiple instances of dns-ui or with other services under the same virtual host.

An additional change allows to configure an optional extra LDAP filter for user objects. This can be used to make extra sure to restrict which users may log into dns-ui.

  This uses an extra LDAP bind operation to do authentication. Because
  it does not rely on HTTP basic authentication I had to introduce a
  session (probably resulting in cookies).
and throw an exception if it doesn't. Previously the code just failed.
  - show login errors as alert on the login page
This allows to filter for users even before a bind attempt is done
through the login form. This improves security by allowing to use LDAP
filtering to identify eligible users at a very early stage.
@stamfest
Copy link
Author

Could anyone at least comment if this feature has any chance to be merged? I can sign each and every commit, but I would really like at least some feedback. Is that sooo hard?

@thomas-pike
Copy link
Collaborator

Hi sorry, I've not had much time to look at this as I've been busy with other projects, and no-one else is working on this project. Thank you for your large contribution. I'll try to make some progress with this.

@tacerus
Copy link

tacerus commented Sep 6, 2021

@stamfest I think you should just publish it as a fork at this point. These are some neat additions.

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.

3 participants