auth.py 260 B

123456789101112131415
  1. __package__ = 'archivebox.core'
  2. from ..config import (
  3. LDAP
  4. )
  5. def register_signals():
  6. if LDAP:
  7. import django_auth_ldap.backend
  8. from .auth_ldap import create_user
  9. django_auth_ldap.backend.populate_user.connect(create_user)