I found one solution :

in this section :

9.      Add the following code after “if not third_party_auth_successful:”

I've replace

if db_profile is user:
by

if db_profile is None:


Le mercredi 11 janvier 2017 11:50:32 UTC+1, Pierre-Philippe Fady a écrit :
>
>
> Thank you from this explications.
>
> Please could you help me about that ?
>
> I can connect with an account from LDAP the first time, but next, i've an 
> error : IntegrityError: (1062, "Duplicate entry '37' for key 'user_id'")
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/39636d64-d19a-4390-9c09-4da8a2026902%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to