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
39
votes
2 answers

Understanding Django-LDAP authentication

I am new to Django and have been assigned the task of implementing a user authentication system with LDAP as the backend. I guess the documentation assumes that the end developer has enough experience in Django to be able to understand and implement…
name_masked
  • 9,544
  • 41
  • 118
  • 172
17
votes
1 answer

django auth ldap

I've been trying to get the LDAP -> Django groups mappings working without success. Everything seems to work fine except for the group mapping part. My LDAP backend is Active Directory. I'm using django-auth-ldap 1.0.10. settings.py: import ldap,…
nnachefski
  • 1,552
  • 2
  • 18
  • 29
12
votes
1 answer

Using the django-auth-ldap LDAPSearch to search two OUs

I have an containerized application that is using django-auth-ldap to search an Active Directory for users. I would like to combine the output from two separate OUs. Is there a different method or overload that could take two DN's or a way to the…
BenH
  • 9,766
  • 1
  • 22
  • 35
12
votes
3 answers

How to achieve authentication with django-auth-ldap?

I have an app running using django. Now i want only users that are authenticated via an openldap server to see "their view" (therefore i only need their uid after successfull authentication) How can i achieve that? I guess django-auth-ldap is the…
9
votes
3 answers

Importing LDAP users into django database

I want to import the users of a ActiveDirectory database into Django. To this end I'm trying to use the django_auth_ldap module. Here is what I tried already : in my settings.py : AUTH_LDAP_SERVER_URI = "ldap://example.fr" AUTH_LDAP_BIND_DN =…
Johanna
  • 1,343
  • 4
  • 25
  • 44
9
votes
1 answer

Create users in LDAP using Django

I am having trouble with the LDAP authentification module django-auth-ldap. I am using the example configuration from this site: http://packages.python.org/django-auth-ldap/ I'd like to do two things: 1) Authentificate against LDAP: For the moment,…
alistril
  • 91
  • 1
  • 2
9
votes
6 answers

Django Auth LDAP - Direct Bind using sAMAccountName

There are two ways to authenticate a user using Django Auth LDAP Search/Bind and Direct Bind. The first one involves connecting to the LDAP server either anonymously or with a fixed account and searching for the distinguished name of the…
8
votes
2 answers

Django with multiple databases and app specific routers, cannot add users in MSSQL

We have a Django application that is connecting to multiple MS SQL database instances. There is a router.py for each app that handles routing the processes to each database. This is my first time setting up multiple database access. Django built-in…
7
votes
1 answer

How to implement ldap authentication(without admin credentials) in django

My setup: Django-3.0, Python-3.8, django_auth_ldap I have LDAP Server (Active Directory Server) in my organization. I am building a Django Application which serves some operations for all the users. I know Django has built-in User Authentication…
shivappa
  • 153
  • 1
  • 11
7
votes
2 answers

Django Authentication Ldap Full example

I partially understood the Django Ldap Authentication. Can anyone give the full example developing very basic application that uses Django Authentication Ldap . I went through this resource and tried to understand many things but still I am not able…
user10960338
7
votes
2 answers

Getting groups from LDAP to django

I am using django-ldap-auth to authenticate users against an LDAP-Server (ActiveDirectory). The users are able to login and the flags per user (e.g. is_staff) are set correctly. I also want to add django-groups to my django-users depending on the…
Marius
  • 930
  • 1
  • 9
  • 28
6
votes
1 answer

How to create mock LDAP server for Django project?

I'm using django-auth-ldap and was wondering what is the easiest way to create a python mock ldap server. The problem arises when I'm developing away from the network the ldap server is located on. Testing is another scenario. I want to avoid…
mynameistechno
  • 3,526
  • 1
  • 37
  • 32
5
votes
1 answer

Django LDAP authentication through Active Directory 2008

I'm trying to authenticate my user through the corporate Active Directory server. I am unable to configure it properly, I know the LDAP works I have a MediaWiki that is configured and working to authenticate on the Active Directory Server. system: …
DoRivard
  • 792
  • 3
  • 16
  • 27
5
votes
2 answers

django-auth-ldap failed authentication

I'm trying to use Django-Auth-Ldap in my project (Django 1.6, Python 2.7) but it is not working. My active Directory shema is: I've tested the connection on the cmd line by installing the ldap-utils package sudo apt-get install…
Sam
  • 523
  • 2
  • 5
  • 14
5
votes
1 answer

Django user authentication: django_auth_ldap.backend.LDAPBackend

I don't understand how to use the LDAPBackend in django, all I want to do is to authenticate a user against LDAP. I have tried the following: from django_auth_ldap.backend import LDAPBackend auth = LDAPBackend() user =…
Cosmix
  • 93
  • 1
  • 7
1
2 3 4 5 6 7