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
0 answers

Not sure how django and ldap work together

I have a django app and I want to add authentication to it. Django is very good friend so it has a great security part. I can use the User object and the built-in admin GUI to maintain users, groups, etc. I want to give the opportunity to the app…
Viktor
  • 1,325
  • 2
  • 19
  • 41
0
votes
1 answer

django-auth-ldap default values for newly created user

I have a Django app which has two authentication backends, an LDAP backend that has all 'internal' users and a custom backend having 'external' users. All internal users which match the LDAP group search filter should be created with is_staff:…
MichielB
  • 4,181
  • 1
  • 30
  • 39
0
votes
1 answer

LDAP: 'Populating Django user' causes error 'INSUFFICIENT_ACCESS'

I am attempting to authenticate a Django application against an LDAP server and am receiving some strange behavior. Please keep in mind I don't know much about LDAP so if I misuse some LDAP terminology, excuse me. Also note that throughout this…
Brent C
  • 833
  • 1
  • 9
  • 15
0
votes
1 answer

django-auth-ldap not finding groups

I am using a fork of django-auth-ldap (django-auth-ldap-ng==1.7.6) with pyldap==2.4.25.1 to connect to ldap. I am able to successfully log in but I am running into errors. I am getting a DN_SYNTAX error even though I am able to still log in with…
Zorpho
  • 182
  • 1
  • 14
0
votes
1 answer

django-auth-ldap - Display user information from LDAP in custom view

I'm using django-auth-ldap with following setting because there is no default/global 'admin' user on the ldap server, its only for authenticating users and users themselves may see their user…
Christoph Lösch
  • 645
  • 7
  • 22
0
votes
1 answer

django-ldap auth and django 1.6 deprecated warning on user_profile

On using django-auth-ldap (1.2.0) with django 1.6 on my linux running python 2.7 I get the warning: The use of AUTH_PROFILE_MODULE to define user profiles has been deprecated. profile = self._user.get_profile() My settings.py contain LDAP…
user956424
  • 1,611
  • 2
  • 37
  • 67
0
votes
1 answer

How do I perform django authentication using a ldap?

I have seen almost every question and tutorial about this topic and i still cannot connect to my ldap with the django. Here are my settings.py and views.py below this. I really need to solve this, if anybody could help me I would really appreciate…
0
votes
1 answer

django auth ldap with custom user model

I'm trying to use django auth ldap (v1.1.7) with a custom user model and, while I have everything else taken care of, I still run into a familiar error message that I just don't know how to fix. Running python manage.py syncdb returns: CommandError:…
Adelin
  • 7,809
  • 5
  • 37
  • 65
0
votes
1 answer

How do I authorize separetely from authentication using django-auth-ldap

I am creating a django application that need to authenticate against our organization's LDAP server which I have successfully done using django-auth-ldap. After authentication, I need to authorize each authenticated user against a local database to…
tks
  • 55
  • 6
0
votes
1 answer

Retrieve dn with django-auth-ldap

I'm writing a web app with django and an Ldap backend to authenticate users. Authentication is done, and attribute mapping is also done with django-auth-ldap (thanks ...). But in the web interface, users need to update some informations like…
Loïc Chabert
  • 71
  • 1
  • 5
0
votes
0 answers

Django Auth ldap works only for AUTH_LDAP_BIND_DN user

I'm trying to build user authentication against our LDAP using django-auth-ldap package. settings.py AUTHENTICATION_BACKENDS = ( 'django_auth_ldap.backend.LDAPBackend', 'django.contrib.auth.backends.ModelBackend', ) import ldap from…
-1
votes
1 answer

Getting all LDAP users with django

I'm using django-auth-ldap and I'm trying to get all users from LDAP server, I didn't find a way to do so, the authenticating is working in the backend, here is my code @api_view(['GET']) def users(request): l =…
stoune
  • 11
  • 5
-1
votes
1 answer

Cannot figure out the correct setup for university ldap

I'm trying to setup the university ldap for my bachelor thesis but cannot figure out, what i do wrong. Get this message: Caught LDAPError while authenticating my_actual_id: SERVER_DOWN({'desc': "Can't contact LDAP server"}) My settings…
1 2 3 4 5 6
7