Questions tagged [django-auth-ldap]

django-auth-ldap is a pluggable Django app that provides an authentication backend that authenticates against an LDAP service

django-auth-ldap is a pluggable Django app that provides an authentication backend that authenticates against an LDAP service.

See also:

103 questions
2
votes
1 answer

Understanding the process sequence in Django's middleware

I'm quite new to Django, and have been assigned the task of building a web application that authenticates a user against LDAP, once authneticated the user can search for a person/group in the LDAP Server. In the last few weeks I've been stuggling…
pymat
  • 1,090
  • 1
  • 23
  • 45
2
votes
1 answer

django-ldap-auth user profile in django > 1.7

I'm trying to implement django-ldap-auth in my project and everything seems to work just fine. The problem is, that package doesn't support user profile field population for Django versions newer than 1.7. From docs: Note Django 1.7 and later do…
intelis
  • 7,829
  • 14
  • 58
  • 102
2
votes
1 answer

django-auth-ldap with Active Directory not pulling "Domain Users" group

I have the following in my settings.py which is working fine and authenticating against Active Directory. This config is pulling all groups into the Django Admin app apart from the "Domain Users" group which I need to use in my current project. Does…
rjkowalewski
  • 341
  • 5
  • 19
2
votes
0 answers

Django, LDAP and custom permissions/groups

I'm using LDAP to authenticate users in my django app. This works fine. But I have one problem: In my settings.py I have the following entry: AUTH_LDAP_USER_FLAGS_BY_GROUP = { "is_great": "cn=admins,ou=application,ou=myorg,c=de", } After…
Dakkar
  • 5,682
  • 5
  • 22
  • 28
2
votes
0 answers

django - Remove users from django database if user is removed from database from LDAP server

I'm currently using django-auth-ldap to authenticate with LDAP, and I've looked through all the docs for the library, it doesn't mention what happens to the django database when the database we are authenticating against removes the user. I know we…
Test
  • 21
  • 3
2
votes
1 answer

Django Auth LDAP - NO_SUCH_OBJECT

Today out of the blue my WEBApp started failing in the login. I am authenticating the users against LDAP. The Web App is hosted on a Windows 2003 Server with Django 1.6.1 and Apache 2.2 and mod_wsgi. The error is ERROR : 18/02/2015 01:52:17 PM :…
Guddu
  • 1,588
  • 4
  • 25
  • 53
2
votes
2 answers

LDAP authentication using user credentials in django

LDAP server which I need to use doesn't support anonymoys authentication, so I need to use user credentials but I don't want to put username and password in config. Is it a way to authenticate user by his credentials? I can authenticate with config…
sebaszw
  • 1,404
  • 2
  • 14
  • 19
2
votes
0 answers

Error authenticating static resources with WSGI and django-auth-ldap

I'm using django-auth-ldap (v1.1.4) to allow users in an LDAP directory to log in to my Django web application. This works very well, however, I would also like my users to be able to access some static resources via their Django credentials,…
grw
  • 1,279
  • 1
  • 11
  • 19
2
votes
2 answers

Using Django Admin Page to Add Users with other AUTHENTICATION_BACKEND

I'm using django_auth_ldap to authenticate users for a Django project against a large corporate ActiveDirectory system that's not organized in a useful way (and I don't have the ability to change it). As such, I have to add users individually so…
2
votes
0 answers

Django-auth-ldap configuration

I get to my log in page, submit my credentials and I get redirected saying my credentials are wrong. My logging doesn't even to seem to work, which I'm assuming the django-auth-ldap config isn't even set up correctly. Any further help would be…
Zach Mance
  • 95
  • 9
2
votes
0 answers

Ldap authentication using django_auth_ldap

I am trying to achieve Ldap authentication using django. For that I have configured my settings.py as mentioned here http://pythonhosted.org/django-auth-ldap/example.html I am attaching my settings.py file here import ldap import os from…
Neeraj Pai
  • 21
  • 4
2
votes
2 answers

Django user julienb does not have a profile to populate

i'm trying to login into the admin site through the ldap. The user is find in the ldap. My problem is that each time i try to login, i got this error. search_s('ou=utilisateurs,ou=employee,dc=bi,dc=invik,dc=lu', 2,…
1
vote
1 answer

Prevent LDAP users from being automatically created in the Django admin site

I setup an LDAP authentication to login to a Django admin site from an active directory(AD) After logging in, the user are populated in the Users of Django admin site. Is there a way to prevent that the users are populated in the Django admin…
Ricky Aguilar
  • 329
  • 1
  • 8
  • 19
1
vote
0 answers

Django configuration LDAP using Django-auth-ldap

I am trying to configure LDAP authentication on my django project. Before get into django, I have tested following shell command can return successfully. ldapsearch -H ldap://172.16.34.4 -b "dc=corp,dc=rate,dc=com" -D corp\\peter -W…
TangHongWan
  • 645
  • 1
  • 6
  • 18
1
vote
1 answer

django-auth-ldap failed to map the username to a DN after switching to LDAPS

I'm building a django project for my company, I had settings like below when I just use simple bind without SSL: AUTH_LDAP_SERVER_URI = 'ldap://some.example.server:389' AUTH_LDAP_BASE_DN = 'some-base-dn' AUTH_LDAP_BIND_DN =…
Linightz
  • 135
  • 3
  • 10