Skip to content

Pass the request object to ldap_error #263

@sdolemelipone

Description

@sdolemelipone

It would be very useful to have the _LDAPUser.authenticate() method pass the request object to the ldap_error signal.

The specifc use case here is that if there is a connection issue (SERVER_DOWN) with the ldap server, I would like to feed that back to the user attempting to log in, via the django.contrib.messages module. This in turn requires a request object in order to route the message to the user's session.

Please let me know if a pull request would be accepted for this. Perhaps it would be consistent to pass the request object to the populate_user signal as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions