Re: Django with LDAP for authentication, but not user group

2018-08-14 Thread Vineet Kothari
ldap is mainly used for authorization On Tue, Aug 14, 2018 at 9:33 AM, Mike Dewhirst wrote: > On 13/08/2018 4:01 PM, Claire Chan Myae wrote: > >> Hello, >> >> I would like to integrate Django with my ldap. I want to use ldap only >> for user authentication part,

Re: Django with LDAP for authentication, but not user group

2018-08-13 Thread Mike Dewhirst
On 13/08/2018 4:01 PM, Claire Chan Myae wrote: Hello, I would like to integrate Django with my ldap. I want to use ldap only for user authentication part, but not for user group. Would that be possible? If I use ldap, i must use both user and group or I can use only user? https

Django with LDAP for authentication, but not user group

2018-08-13 Thread Claire Chan Myae
Hello, I would like to integrate Django with my ldap. I want to use ldap only for user authentication part, but not for user group. Would that be possible? If I use ldap, i must use both user and group or I can use only user? Thanks -- You received this message because you are subscribed

Re: Django/Python-ldap Ldap Question Adding Entries

2014-07-27 Thread Paul J Stevens
Does ou=Enki Users,dc=enki,dc=local actually exist already? If it doesn't you need to create it first before trying to add objects to it. On 23-07-14 19:05, G Z wrote: > I'm trying to add entries via a form post in django, I have the > following code and its really not django specific but it is

Django/Python-ldap Ldap Question Adding Entries

2014-07-23 Thread G Z
I'm trying to add entries via a form post in django, I have the following code and its really not django specific but it is python-ldap specific. I'm trying to add entries with python ldap. I'm getting a naming convention error. My code is import ldap import ldap.modlist as modlist

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
; I have that code but where does the logging go? >> >> On Wednesday, 15 May 2013 11:04:33 UTC-4, Guddu wrote: >>> >>> Ok. Now try to get django-ldap-auth working. See if you can enable the >>> logging handler and grab some more information. >>> &g

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
The problem was that the LDAPSearch had to start with a OU= I had it start with a DC=. On Wednesday, 15 May 2013 11:27:08 UTC-4, Cody Scott wrote: > > I have that code but where does the logging go? > > On Wednesday, 15 May 2013 11:04:33 UTC-4, Guddu wrote: >> >> Ok. No

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
that code but where does the logging go? > > > On Wednesday, 15 May 2013 11:04:33 UTC-4, Guddu wrote: > >> Ok. Now try to get django-ldap-auth working. See if you can enable the >> logging handler and grab some more information. >> >> http://pythonhosted.org/**django-a

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
I have that code but where does the logging go? On Wednesday, 15 May 2013 11:04:33 UTC-4, Guddu wrote: > > Ok. Now try to get django-ldap-auth working. See if you can enable the > logging handler and grab some more information. > > http://pythonhosted.org/django-auth-ld

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
Ok. Now try to get django-ldap-auth working. See if you can enable the logging handler and grab some more information. http://pythonhosted.org/django-auth-ldap/logging.html Regards Guddu On Wed, May 15, 2013 at 10:56 AM, Cody Scott <cody.j.b.sc...@gmail.com>wrote: > Ok The problem w

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
this show you? import ldap print ldap.__file__ We should try to get this working first before moving to django-auth-ldap Regards Guddu On Wed, May 15, 2013 at 10:17 AM, Cody Scott <cody.j.b.sc...@gmail.com>wrote: > http://dpaste.org/EboQU/ > > On Wednesday, 15 May 2013 10:09:01 UTC

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
Ok The problem was that I had the file named ldap.py. I got it to work, I had to add a print to l.result(result) put I get a tuple of a number and an empty list (#, []) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
; I put that code in a separate python file and ran it without django or >> django-auth-ldap. >> >> l = ldap.initialize() >> AttributeError: 'module' object has no attribute 'initialize' >> >> so python-ldap is not installed properly? >> >> I am not

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
What does this give you? import ldap dir(ldap) Regards Guddu On Wed, May 15, 2013 at 10:04 AM, Cody Scott <cody.j.b.sc...@gmail.com>wrote: > I put that code in a separate python file and ran it without django or > django-auth-ldap. > > l = ldap.initialize() > AttributeE

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
I put that code in a separate python file and ran it without django or django-auth-ldap. l = ldap.initialize() AttributeError: 'module' object has no attribute 'initialize' so python-ldap is not installed properly? I am not able to login, no error just invalid credentials. How do I get

Re: django-auth-ldap

2013-05-14 Thread Anurag Chourasia
Setting up of groups is not a requirement. In my case I am searching for group membership just to grant/deny access based on Group membership also. I sent my settings to you just to show you how I was using sAMAccountName for user search. So what exactly is not working in your case? You are not

Re: django-auth-ldap

2013-05-14 Thread Cody Scott
Do I need to set up groups? I have a setting for AUTH_LDAP_SERVER_URI AUTH_LDAP_BIND_DN AUTH_LDAP_BIND_PASSWORD AUTH_LDAP_USER_SEARCH AUTH_LDAP_USER_ATTR_MAP = { "username": "sAMAccountName", "email": "mail" } I am using a custom auth model. Maybe that is the reason it is not working?

Re: django-auth-ldap

2013-05-14 Thread Anurag Chourasia
om the login form. Regards, Guddu On Tue, May 14, 2013 at 2:52 PM, Cody Scott <cody.j.b.sc...@gmail.com>wrote: > I am trying to get django-auth-ldap working with an Active Directory LDAP > Server. > > I don't understand the documentation for the Search/Bind or Direct Bind. >

django-auth-ldap

2013-05-14 Thread Cody Scott
I am trying to get django-auth-ldap working with an Active Directory LDAP Server. I don't understand the documentation for the Search/Bind or Direct Bind. Is 'uid' the LDAP attribute uid? My LDAP doesn't use this attribute. I tried putting 'samaccountName' an attribute that is used for logon

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 automati

Re: Django and LDAP

2012-09-13 Thread Ivan Pavlović
AM, sbrandt <s.brandt.ber...@googlemail.com>wrote: > 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

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

Re: Django and LDAP

2012-09-12 Thread Stephen Anto
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 logging into > Django. i have read so

Re: Django and LDAP

2012-09-11 Thread Mike Dewhirst
On 12/09/2012 8:05am, Mike Dewhirst wrote: On 12/09/2012 7:49am, Ivan Pavlović wrote: Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection between Django and an LDAP (assistant insisted on 389ds). I installed Django, enabled

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
>>> assignment at my Faculty, which requires connection 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 a

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
09/2012 7:49am, Ivan Pavlović wrote: > >> Thank you Mike for your answer. I started this topic, because i have an >> assignment at my Faculty, which requires connection between Django and >> an LDAP (assistant insisted on 389ds). I installed Django, enabled >> admin, logged

Re: Django and LDAP

2012-09-11 Thread Thomas Lockhart
On 9/11/12 2:49 PM, Ivan Pavlović wrote: Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection between Django and an LDAP (assistant insisted on 389ds). I installed Django, enabled admin, logged in through Firefox. I can't

Re: Django and LDAP

2012-09-11 Thread Mike Dewhirst
On 12/09/2012 7:49am, Ivan Pavlović wrote: Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection between Django and an LDAP (assistant insisted on 389ds). I installed Django, enabled admin, logged in through Firefox. I can't

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection 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

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

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

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

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

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

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

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 "D

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

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

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

Re: django and ldap

2010-02-04 Thread David De La Harpe Golden
the source of django-auth-ldap. Django doesn't really give you any help with logs out-of-box (I suppose the argument is python already has its logging package (quite the baroque one) that you can setup how you want), they may be going nowhere? For debugging rather than production logging needs

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

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-

Re: django and ldap

2010-02-03 Thread andreas schmid
that way with your question regarding AUTH_LDAP_USER_ATTR_MAP anyway. > > sn in both is less likely to be what you want, usually surnames > can violate typical username constraints and be non-unique. > > > no users in the db, > > Well, n.b. that probably won't happen until y

Re: django and ldap

2010-02-03 Thread David De La Harpe Golden
ers in the db, Well, n.b. that probably won't happen until you actually try to log in as a particular ldap user. django-auth-ldap apparently has a dedicated list, might reach people with more familiarity with it, I'm not sure what else might be wrong with your config: http://bitbucket.org/

Re: django and ldap

2010-02-03 Thread andreas schmid
sages, no success messages, no users in the db, really no signal at all. how can i check if i am connected or not? what is the username if i dont set it explicitly in the AUTH_LDAP_USER_ATTR_MAP? David De La Harpe Golden wrote: > On 03/02/10 13:41, andreas schmid wrote: >> hi, >> >>

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

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

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: <http://code.djangoproject.com/attachment/ticket/2507> 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