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
0
votes
1 answer

Django AUTH_LDAP_GROUP_SEARCH ObjectClass values from none to overkill

I have lil bit problem with my LDAP groups. i have: AUTH_LDAP_GROUP_SEARCH = LDAPSearchUnion( LDAPSearch("OU=U3,OU=UserGroups,OU=U1,OU=CompanyUsers,DC=ad,DC=net", ldap.SCOPE_SUBTREE, "(objectClass=groupOfNames)"), …
gipcu
  • 265
  • 2
  • 14
0
votes
0 answers

django auth ldap | Add LDAP user in admin-panel

Maybe, anybody know... I need add LDAP user inside admin panel. My autentithication LDAP in Django works, but I have to add users very strange. First they log in and they are not allowed. Then I go to admin panel and see user is added, but without…
0
votes
0 answers

Is there any way we can import models in django settings.py?

I am using Django-auth-LDAP for authentication, now I want to get data for a field like : AUTH_LDAP_BIND_DN, AUTH_LDAP_BIND_PASSWORD, AUTH_LDAP_SERVER_URI from the database but I am getting an error. settings.py import subprocess from django.apps…
0
votes
1 answer

Django_auth_ldap: User from LDAP post_save signal 'created' flag always false

I am trying to allow LDAP users to login to my Django application. Each user needs some additional attributes which I want to store in a User Profile model. I have implemented the 'post_save' signal to create the userprofile on initial login,…
0
votes
1 answer

LDAP Auth: Variable in OU (Organizational Unit)

I am using django-auth-ldap library and everything is working fine. I am doing direct bind using AUTH_LDAP_USER_DN_TEMPLATE. The CN of user has this format: "department.surname". Department is a code composed of 5 characters. And the template for DN…
O Pardal
  • 647
  • 4
  • 21
0
votes
0 answers

Cannot auth ldap user by django-auth-ldap

I´m having problems getting ldap users authenticated with django-auth-ldap 1.2.8. I can log-in by use of Apache Directory Studio as followed: hostname: private.pai.org port: 389 Auth: Bind DN –…
Anatol
  • 1,923
  • 6
  • 26
  • 55
0
votes
1 answer

Django : Use decorator 'user_passes_test' using LDAP group witout django DB

I want to use LDAP AUTH for django. For the moment I have also a django Model Backend where are all my users and theirs groups. In my code, an user passes a test in order to access to application. This operation check if the group to allow is in the…
0
votes
1 answer

Django AUTH_LDAP_MIRROR_GROUPS Not working

I'm having some trouble trying to instruct Django only to synchronize some groups using LDAP integration. The documentation itself tells me that: AUTH_LDAP_MIRROR_GROUPS ... This can also be a list or other collection of group names, in which case…
forkd
  • 45
  • 8
0
votes
1 answer

django_auth_ldap vs postgres db using django models

I am creating an app where I store the USERS in a Postgres database with the help of the standard User Model, in my Django app i use Django queries to get all needed information, like "first_name", "username" .. etc I implemented Django_auth_ldap to…
Mohamed Benkedadra
  • 1,964
  • 3
  • 21
  • 48
0
votes
1 answer

Login forms stop working when switching to production

I'm using Wagtail 2.1, Django 1.11.13, django-auth-ldap 1.6.1 and gunicorn 19.8.1 (Nginx as a proxy server). I have created two different ways to login, an AJAX view: def loginajax(request): # Identation is okay, can't seem to paste it properly if…
fidelleon
  • 27
  • 4
0
votes
0 answers

LDAP authentication in clear text

I created a website using django and recently added ldap authentication pointing towards our active directory on LDAP tcp/389. The problem is the django auth-ldap sends this ldap password data in clear text, and the AD i'm trying to authenticate…
0
votes
1 answer

django_auth_ldap - AUTH_LDAP_REQUIRE_GROUP

I am using django_auth_ldap. Login without checking for a group works fine. But trying to login with the user example_user which was added to the group example_group on LDAP and setting AUTH_LDAP_REQUIRE_GROUP fails. settings.py AUTH_LDAP_SERVER_URI…
fuser60596
  • 1,087
  • 1
  • 12
  • 26
0
votes
1 answer

django-auth-ldap AUTH_LDAP_FIND_GROUP_PERMS not working

Problem As far as I can tell, django-auth-ldap is doing everything I need given my configuration. Except that it's unable to establish a mapping from ldap groups to django groups. I have a group in ldap called dev, i.e., cn=dev. I also have a group…
Filip Kilibarda
  • 2,484
  • 2
  • 20
  • 31
0
votes
1 answer

Python, Django LDAP: detecting Authentication failed reasoning

I am working on a project to integrate LDAP authentication in an existing Django app. Using this site and others I have finally been able to configure everything correctly using the django_auth_ldap backend. Including: AUTH_LDAP_REQUIRE_GROUP =…
Roygbiv
  • 89
  • 7
0
votes
1 answer

No module named 'django_auth_ldap'

I'm trying to configure a website with django and LDAP authentification. Upon my login page, I just type in any username and password, and expect to get to a different html page (without connecting to a database, for now. My method in my view.py…
pymat
  • 1,090
  • 1
  • 23
  • 45