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

log when login data validation fails #211

Closed
wants to merge 1 commit into from

Conversation

hajothelen
Copy link

Give some information to the user to fix #210

Give some information to the user to fix etianen#210
@etianen
Copy link
Owner

etianen commented Jun 25, 2021

I see what you mean. Unfortunately, I'm just following the Django behaviour here:

https://github.com/django/django/blob/8a7ac78b706797a03d26b88eddb9d1067ed35b66/django/contrib/auth/backends.py#L36

If an authentication backend doesn't get all the parameters it needs, it just fails silently to allow the next backend in the list to have a go.

I don't really want to be spamming warning logs for a setup that's valid, if rare.

@etianen etianen closed this Jun 25, 2021
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.

No log entry when parameter check fails in ldap.authenticate
2 participants