In Django you can read _auth_user_id
from request.session
dictionary after you authenticate and log in user. As I understand in "normal" conditions (standard authentication backend) it should be user id (pk).
But what is _auth_user_id
when I'm using django-auth-ldap
as authentication backend? It returns integers but there is no such values in my LDAP database.