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,
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
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
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
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
; 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
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
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
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
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
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
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
; 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
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
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
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
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?
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.
>
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
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
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
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
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
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
>>> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
@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
> 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-
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
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/
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,
>>
>>
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
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
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
50 matches
Mail list logo