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
1
vote
1 answer

Why does LDAPBackend.authenticate() store user info in custom user model in Django

I'm new to LDAP authentication and going through some of the StackOverflow questions and django-auth-ldap documentation I was able to implement LDAP authentication in my django project. I have a custom user model to store the user information. But…
Aashay Amballi
  • 1,321
  • 3
  • 17
  • 39
1
vote
1 answer

Django allauth Automatically set mail address as confirmed

I am using django-allauth together with an LDAP-backend. So whenever a users logs in, the mail address is set to the mail address stored in our directory server. I was able to disable email confirmation by setting ACCOUNT_EMAIL_VERIFICATION =…
Racer
  • 534
  • 1
  • 6
  • 11
1
vote
0 answers

Django Ldap Autentication only works with DN_TEMPLATE

trying to get my Django authentication work with an LDAP server but I cannot login, I've managed to do it using forumsys test LDAP server using AUTH_LDAP_USER_DN_TEMPLATE, but adding both ou with LDAPSearchUnion (what I will need in my real project)…
1
vote
0 answers

Problem with AUTH_LDAP_REQUIRE_GROUP in Django

I am using OpenLDAP and I would like to connect it to Django using django_auth_ldap.I have tried many options but couldn't find solution. I am trying to login with the user test_user which was added to the group test_group on ldap. when i am trying…
1
vote
0 answers

Permission linking between LDAP users groups and Django permissions (custom if possible)

Hello again every one, I have a question: I successfully implemented django-auth-ldap, the LDAP users can request successfully my DRF API. But nows, for my projetc needs, I have to define permissions depending of the group. Indeed, I will have like…
1
vote
1 answer

Django: Unable to get user's groups from LDAP user

My Django ( Django 1.11) project is using django-auth-ldap 1.2 as authentication backed. I have no problem to authenticate any user agents LDAP database using: @login_required(login_url='/accounts/login/') and in this case, any user from any…
Eyla
  • 5,751
  • 20
  • 71
  • 116
1
vote
0 answers

Installing django_auth_ldap / pyldap

Installing Python libraries on my Mac is normally relatively problemless, but with my Windows 10 PC I encounter more headaches. I'd like to setup an LDAP Authentication Backend in Django, and I've already used ldap3 to confirm a bind, with…
pymat
  • 1,090
  • 1
  • 23
  • 45
1
vote
2 answers

django-auth-ldap AUTH_LDAP_FIND_GROUPS_PERMS not working

I'm running Django 1.8.18 and django-auth-ldap 1.2.11 authenticating against Active Directory. My current configuration authenticates properly against the AD, however, when I enabled AUTH_LDAP_FIND_GROUPS_PERMS it doesn't seem to do anything. I've…
Programming123
  • 302
  • 3
  • 15
1
vote
0 answers

django-auth-ldap query. Cannot add LDAP users to active, staff, superuser roles

Looking for some help with the django-auth-ldap package. Background - I am trying to add LDAP users to the default user roles STAFF, ACTIVE, and SUPERUSER. As you can no doubt see from the the debug.log that the django-auth-ldap successfully finds…
1
vote
1 answer

Can Django map multiple LDAP authentications onto a single User object?

I am authenticating Django users against an Active Directory (LDAP) database using django-auth-ldap. Our convention for sAMAccountName (typically the unique identifier for an AD account) is firstname.surname. It is possible that this value will…
lofidevops
  • 15,528
  • 14
  • 79
  • 119
1
vote
1 answer

How install django-auth-ldap==1.2.7 in Heroku servers?

I'm trying to install this lib django-auth-ldap==1.2.7 using pip install in requirements.txt. I'm using Heroku services to deploy. However, every time I try to push/deploy the code I can't quite finish the dependency check/install because pops this…
Alvaro Silvino
  • 9,441
  • 12
  • 52
  • 80
1
vote
0 answers

List the groups using django-auth-ldap

I'm trying to retrieve a list of groups from LDAP using django-auth-ldap. It is already authenticating against the LDAP but now I need to retrieve the groups available so I can use them in one of my Models. One of my models has a group attr that…
1
vote
1 answer

How to use django_auth_ldap for django project?

The following is the snippet of the setting for our project.The problem is that it did not seem like it is connecting to the LDAP server. I added a couple print statement in the django_auth_ldap module and none of them is printed out when I run the…
Hannnnnn
  • 13
  • 5
1
vote
1 answer

ldap for django cannot be installed

I have a question, is django-auth-ldap available for python 3.4? ldap package seems to be available but this other one either I cannot install or is not available yet. A hack anyone?
1
vote
1 answer

django ldap auth not working from the app

anyone using django_auth_ldap against an active directory server I am trying to set up auth through django_auth_ldap and am having an issue. if i run my auth from the django interactive shell the auth works fine. example from the shell >>> from…