Questions tagged [python-ldap]
python-ldap provides an object-oriented API to access LDAP directory servers from Python programs
python-ldap
243
questions
0
votes
0
answers
39
views
Unable install python-ldap in python 2.7.9 on windows 11
I cannot install the required package because it needs Visual Studio C++ 9.0, which is no longer supported. Unfortunately, I can't upgrade my Python version because I need it for Odoo 8 development. ...
0
votes
0
answers
33
views
LDAP Authentication with Django Rest Framework
I am new to Django and i am using Django Rest Framework for Backend. I followed this tutorial to add Ldap authenrication to my Django Rest Framework project.
AUTH_LDAP_SERVER_URI = "ip"
...
0
votes
1
answer
31
views
Search which groups is the AD user member of
I need to authorize the user in AD and receive the list of groups which is the user member of. I have done the code working, but the search takes very long - about 20 seconds in my small office AD ...
0
votes
0
answers
81
views
python-ldap coudl't be installed
I'm trying to install python-ldap, but this raise an error:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /...
0
votes
0
answers
49
views
Implementing Kerberos and LDAP in Django
firstly, i'm very new to Django.
I have developed a Django app that includes a ticket system. Users should only see their own tickets. Now this self service system should be connected to the Microsoft ...
0
votes
1
answer
395
views
python_ldap install failure on windows using whl file
The python_ldap package for windows 10 fails to install on my windows laptop. It exits with error C1083: mysql.h not found. So I adjusted the path order to place the location of this file closer to ...
0
votes
1
answer
261
views
python ldap3 authentication sometimes succeed and sometimes fails
I'm trying to verify a user with ldap3 with the next Python code, sometimes it goes to the 'Authentication successful' message, and sometimes it fails and goes to the 'LDAP search failed' with the ...
1
vote
1
answer
924
views
LDAP Signing with LDAP3 module in python
I am using LDAP3 module to query information from Active Directory. To get information like GMSA password blob(ManagedPassword attribute), Active Directory expects that either connection is secure(...
8
votes
5
answers
32k
views
ERROR: Could not build wheels for python-ldap, which is required to install pyproject.toml-based projects
I was installing Odoo 15 inside a Python virtual environment on Ubuntu 20.04. I've downloaded Odoo from the official GitHub repository and use Nginx as a reverse proxy.
after following the ...
-1
votes
1
answer
348
views
ldap search_filter escape specific charter [duplicate]
I retrieve members of a group and their sAMAccountName (NT Accounts) I run the following code takes from: ldap3 python search members of a group and retrieve their sAMAcountName (Active Directory)
I'm ...
0
votes
0
answers
67
views
Strange output of pwdLastSet
Some of AD accounts are inactive and their pwdLastSet is equal to 0.
However, when I'm trying to calculate password age for accounts, this inactive accounts gave me a last possible date 1601-01-01 00:...
0
votes
1
answer
125
views
LDAP Filter Syntax Query
What would be the syntax for LDAP for the below scenario:
Where sAMAccountName = GRA-* without $. I want the records which are highlighted in green.
This is my current LADP Filter for your reference:
...
0
votes
1
answer
55
views
Problem with Python script when setting up LDAP for MacOS
I am trying to set up Google secure LDAP on my Macbook Pro running Monterey 12.3 following these instructions from Google.
request.appendData_(NSData.dataWithBytes_length_(CONFIG,
len(CONFIG))) ...
1
vote
1
answer
533
views
How to get the list of possible operational attributes for an objectClass with python-ldap?
With this python snippet, I can get the list of all the available objectClasses in a LDAP server:
import ldap
conn = ldap.initialize("ldap://127.0.0.1:389")
conn.simple_bind_s("cn=...
1
vote
1
answer
329
views
Can somebody help me with python-ldap initialize process?
I am using OpenSuse Tumbleweed and try to connect my pythons script with an ldap server.
following my code:
import ldap
connection = ldap.initialize("*address*")
But i got following error:
...