etianen / django-python3-ldap

Django LDAP user authentication backend for Python 3.
BSD 3-Clause "New" or "Revised" License
411 stars 120 forks source link

how to retrieve the group and permissions of a user after logged in #260

Closed aimendahmani closed 12 months ago

11notes commented 1 year ago

Use

def custom_sync_user_relations(user, ldap_attributes, *, connection=None, dn=None):

and write your own function after the user has authenticated, like check group memberships and so on.