ldap username

54 views
Skip to first unread message

rmk

unread,
Sep 16, 2012, 12:06:04 PM9/16/12
to django-a...@googlegroups.com
hi

my authentication via django-auth-ldap works perfect, but i don't know how i can get username after authentication...

regards
Rmk   

Peter Sagerson

unread,
Sep 16, 2012, 12:24:04 PM9/16/12
to django-a...@googlegroups.com
Every authentication backend in Django--django-auth-ldap included--ultimately returns a django.contrib.auth.models.User instance when it succeeds. Just look at request.user, like normal. Additionally, request.user.ldap_user.dn will be the LDAP DN we used to authenticate and request.user.ldap_user.attrs will be all of their LDAP attributes.

rmk

unread,
Sep 16, 2012, 2:24:29 PM9/16/12
to django-a...@googlegroups.com
thx, works very fine.

Di majo

unread,
May 12, 2024, 2:02:43 PM5/12/24
to django-auth-ldap
MT103/202 DIRECT WIRE TRANSFER
PAYPAL TRANSFER
CASHAPP TRANSFER
ZELLE TRANSFER
LOAN DEAL
TRANSFER WISE
WESTERN UNION TRANSFER
BITCOIN FLASHING
BANK ACCOUNT LOADING/FLASHING
IBAN TO IBAN TRANSFER
MONEYGRAM TRANSFER
IPIP/DTC
SLBC PROVIDER
CREDIT CARD TOP UP
DUMPS/ PINS
SEPA TRANSFER
WIRE TRANSFER
BITCOIN TOP UP
GLOBALPAY INC US
SKRILL USA
UNIONPAY RECEIVER

Thanks.


NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT.

DM ME ON WHATSAPP
+44 7529 555638

Di majo

unread,
May 12, 2024, 2:04:46 PM5/12/24
to django-auth-ldap
Reply all
Reply to author
Forward
0 new messages