On 03/02/10 13:41, andreas schmid wrote:
hi,
i need to authenticate users through ldap but i need also to store their
preferences in the database, i cant really understand if
django-auth-ldap (http://packages.python.org/django-auth-ldap) only
authenticats the users over ldap or if it creates a real user object in
django.
AFAICS it creates a corresponding User object if one is missing for each
ldap authenticated user at authentication time (good ol' get_or_create).
Pretty much all django apps with any per-user functionality expect you
to be using django.contrib.auth.models.User
for users, so doing so makes a lot of sense.
http://bitbucket.org/kozo_ni/django-auth-ldap/src/tip/django_auth_ldap/backend.py#cl-209
http://bitbucket.org/kozo_ni/django-auth-ldap/src/tip/django_auth_ldap/backend.py#cl-346
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.