Re: Django and LDAP

2012-09-16 Thread sbrandt
Where exactly do you need help? You can install it like every other python package via pip or easy_install: "pip install django-auth-ldap" or "easy_install django-auth-ldap". Configuration is really easy and described in the documentation. They support groups and automatic extraction of LDAP da

Re: Django and LDAP

2012-09-13 Thread Ivan Pavlović
Thank you sbrandt. I found the same thing, but i don't know how to use it. Where do i need to copy the files and do i erase some lines of the code or not, to make them as comments. I'm trying but i am not succeeding at making it work... Can you help me about that? On Thu, Sep 13, 2012 at 10:16 AM

Re: Django and LDAP

2012-09-13 Thread sbrandt
Did you know there is django-auth-ldap which is a custom backend for authenticating users through LDAP? http://pypi.python.org/pypi/django-auth-ldap/ I don't see the point why you fiddle around with writing code on your own. I'm using django-auth-ldap since one and a half year in production and

Re: Django and LDAP

2012-09-12 Thread Stephen Anto
Hi, Django instalation on ubuntu, I found key instructions on http://www.f2finterview.com/web/Django/4/ for more follow django instalation guide On Mon, Sep 10, 2012 at 11:44 PM, Tony wrote: > Hi everybody, > > I am new to Django and Python, and right now, i am going through the > documentatio

Re: Django and LDAP

2012-09-11 Thread Mike Dewhirst
admin, logged in through Firefox. I can't make up my mind, do i need to connect Django and LDAP like so that all users from LDAP can login through e.g. localhost:8000/admin, or do i need to make a register/login page, where users from LDAP server can login and onlu admin can login from admin

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
ction between Django and >>> an LDAP (assistant insisted on 389ds). I installed Django, enabled >>> admin, logged in through Firefox. I can't make up my mind, do i need to >>> connect Django and LDAP like so that all users from LDAP can login >>> through e

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
can't make up my mind, do i need to >> connect Django and LDAP like so that all users from LDAP can login >> through e.g. localhost:8000/admin, or do i need to make a register/login >> page, where users from LDAP server can login and onlu admin can login >> from admin page

Re: Django and LDAP

2012-09-11 Thread Thomas Lockhart
x27;t make up my mind, do i need to connect Django and LDAP like so that all users from LDAP can login through e.g. localhost:8000/admin, or do i need to make a register/login page, where users from LDAP server can login and onlu admin can login from admin page? The second is mpre logical to me, b

Re: Django and LDAP

2012-09-11 Thread Mike Dewhirst
x27;t make up my mind, do i need to connect Django and LDAP like so that all users from LDAP can login through e.g. localhost:8000/admin, or do i need to make a register/login page, where users from LDAP server can login and onlu admin can login from admin page? The second is mpre logical to me,

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
jango and LDAP like so that all users from LDAP can login through e.g. localhost:8000/admin, or do i need to make a register/login page, where users from LDAP server can login and onlu admin can login from admin page? The second is mpre logical to me, but i don't know, because i am new to Django

Re: Django and LDAP

2012-09-10 Thread Mike Dewhirst
On 11/09/2012 4:14am, Tony wrote: Hi everybody, I am new to Django and Python, and right now, i am going through the documentation. I have an assignment at my Faculty, where i need to install Django, 389ds LDAP server (where i have to store my users) and i need to somehow connect them two, so i

Django and LDAP

2012-09-10 Thread Tony
Hi everybody, I am new to Django and Python, and right now, i am going through the documentation. I have an assignment at my Faculty, where i need to install Django, 389ds LDAP server (where i have to store my users) and i need to somehow connect them two, so i can auth users from LDAP when log

Re: django and ldap

2010-02-24 Thread andreas schmid
Peter Herndon wrote: > On Feb 22, 2010, at 3:13 PM, andreas schmid wrote: > > >> Peter Herndon wrote: >> >>> On Mon, Feb 22, 2010 at 9:40 AM, andreas schmid >>> wrote: >>> >>> >>> im experiencing strange problems now. the user is able to authenticate against ldap only if

Re: django and ldap

2010-02-22 Thread Peter Herndon
On Feb 22, 2010, at 3:13 PM, andreas schmid wrote: > Peter Herndon wrote: >> On Mon, Feb 22, 2010 at 9:40 AM, andreas schmid wrote: >> >> >>> im experiencing strange problems now. the user is able to authenticate >>> against ldap only if in the active directory the displayName == username >>>

Re: django and ldap

2010-02-22 Thread andreas schmid
Peter Herndon wrote: > On Mon, Feb 22, 2010 at 9:40 AM, andreas schmid wrote: > > >> im experiencing strange problems now. the user is able to authenticate >> against ldap only if in the active directory the displayName == username >> why this? i dont get any error or traceback, the user only i

Re: django and ldap

2010-02-22 Thread Peter Herndon
On Mon, Feb 22, 2010 at 9:40 AM, andreas schmid wrote: > im experiencing strange problems now. the user is able to authenticate > against ldap only if in the active directory the displayName == username > why this? i dont get any error or traceback, the user only isnt able to > get logged in > I

Re: django and ldap

2010-02-22 Thread andreas schmid
Peter Herndon wrote: > On Feb 5, 2010, at 5:45 AM, andreas schmid wrote: > > >> ok django-ldap-groups works perfectly now! >> >> > > That's great to hear! If you run into any issues, I'll be happy to help > troubleshoot. > > ---Peter > im experiencing strange problems now. the user is

Re: django and ldap

2010-02-05 Thread Peter Herndon
On Feb 5, 2010, at 5:45 AM, andreas schmid wrote: > ok django-ldap-groups works perfectly now! > That's great to hear! If you run into any issues, I'll be happy to help troubleshoot. ---Peter -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: django and ldap

2010-02-05 Thread andreas schmid
ok django-ldap-groups works perfectly now! Mike Dewhirst wrote: > On 4/02/2010 11:14pm, David De La Harpe Golden wrote: >> On 04/02/10 08:33, andreas schmid wrote: >>> @brad: can you show me some sample code for this? >>> > > David > > I am using Peter Herndon's django-ldap-groups successfully. He

Re: django and ldap

2010-02-04 Thread andreas schmid
Mike Dewhirst wrote: > On 4/02/2010 11:14pm, David De La Harpe Golden wrote: >> On 04/02/10 08:33, andreas schmid wrote: >>> @brad: can you show me some sample code for this? >>> > > David > > I am using Peter Herndon's django-ldap-groups successfully. He has two > backends; one for Novell's eDirec

Re: django and ldap

2010-02-04 Thread Mike Dewhirst
On 4/02/2010 11:14pm, David De La Harpe Golden wrote: On 04/02/10 08:33, andreas schmid wrote: @brad: can you show me some sample code for this? David I am using Peter Herndon's django-ldap-groups successfully. He has two backends; one for Novell's eDirectory which I'm using and another for

Re: django and ldap

2010-02-04 Thread brad
On Feb 4, 2:33 am, andreas schmid wrote: > @brad: can you show me some sample code for this? the code that I have is all very specific to where I work. I'd have to clean it up a bit to try to make it useful to you. There's also several other people who have posted snippets for backends based o

Re: django and ldap

2010-02-04 Thread David De La Harpe Golden
On 04/02/10 08:33, andreas schmid wrote: @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. There are logging calls liberally sprinkled through the sou

Re: django and ldap

2010-02-04 Thread andreas schmid
@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 th

Re: django and ldap

2010-02-03 Thread brad
> 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- authe

Re: django and ldap

2010-02-03 Thread andreas schmid
thanks... ill check this asap. David De La Harpe Golden wrote: > On 03/02/10 14:45, andreas schmid wrote: > > >> AUTH_LDAP_BIND_DN = "" >> AUTH_LDAP_BIND_PASSWORD = "" >> AUTH_LDAP_USER_SEARCH = LDAPSearch("dc=example,dc=com", >> ldap.SCOPE_SUBTREE, "(uid=%(user)s)") >> > >

Re: django and ldap

2010-02-03 Thread David De La Harpe Golden
On 03/02/10 14:45, andreas schmid wrote: AUTH_LDAP_BIND_DN = "" AUTH_LDAP_BIND_PASSWORD = "" AUTH_LDAP_USER_SEARCH = LDAPSearch("dc=example,dc=com", ldap.SCOPE_SUBTREE, "(uid=%(user)s)") You're using uid here, but # Set up the basic group parameters. #

Re: django and ldap

2010-02-03 Thread andreas schmid
im trying to get it working, i configured my settings.py like this: import ldap from django_auth_ldap.config import LDAPSearch, GroupOfNamesType # Baseline configuration. AUTH_LDAP_SERVER_URI = "ldap://myldapurl:myportnumber"; AUTH_LDAP_BIND_DN = "" AUTH_LDAP_BIND_PASSWO

Re: django and ldap

2010-02-03 Thread David De La Harpe Golden
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 r

django and ldap

2010-02-03 Thread andreas schmid
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. i even found th

Django and LDAP

2009-07-18 Thread Daniele Procida
Some time ago, I successfully managed to get Django LDAP authentication working. I used the patch at: Now for the life of me I can't repeat my success. Perhaps someone can remind me how I should expect this to work. If I have set up LD