@brad: can you show me some sample code for this?

@david: i tried different configuration options but with no luck, i can
bind and search manually over python-ldap so i can definitely connect.

ive seen that the requirements for django-auth-ldap are python2.3 and
django1.0 so maybe thats one of the problems.
is someone who is using a higher pyhton version and maybe django1.1 and
have it working?
any advise would be appreciated.



brad wrote:
>> i need to authenticate users through ldap but i need also to store their
>> preferences in the database, i cant really understand if
>>     
>
>   
>> what is the best way to go?
>>     
>
> One thing you might consider doing is just write a custom backend:
> (http://docs.djangoproject.com/en/1.1/ref/authbackends/#ref-
> authentication-backends).
>
> I have a project where user's authenticate agains Active Directory.
> If the authentication is successful, the backend checks to see if an
> corresponding User (from django.contrib.auth) exists.  If not, it
> pulls the their full name, username, and email from Active Directory
> and creates the User object.
>
> The pitfall to this approach is that if their info changes in AD, the
> corresponding User data is out-of-sync.
>
> This approach works well for me, but YMMV.
>
>   

-- 
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.

Reply via email to