Skip to main content

Questions tagged [python-ldap]

python-ldap provides an object-oriented API to access LDAP directory servers from Python programs

python-ldap
0 votes
0 answers
35 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. ...
Bagas Muhammad Shaka's user avatar
0 votes
0 answers
31 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" ...
Almas's user avatar
  • 63
0 votes
1 answer
28 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 ...
Jirka RCK's user avatar
0 votes
0 answers
80 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 /...
Eliezer Reuven Ramirez Ruiz's user avatar
0 votes
0 answers
48 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 ...
Pablo's user avatar
  • 1
0 votes
1 answer
372 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 ...
user avatar
0 votes
1 answer
248 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 ...
Izik's user avatar
  • 878
1 vote
1 answer
905 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(...
Sitaram Pamarthi's user avatar
8 votes
5 answers
31k 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 ...
Elon Fask's user avatar
  • 113
-1 votes
1 answer
340 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 ...
shlco's user avatar
  • 1
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:...
user avatar
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: ...
M.G. Puru's user avatar
0 votes
1 answer
54 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))) ...
Dominik Jaro's user avatar
1 vote
1 answer
522 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=...
azmeuk's user avatar
  • 4,360
1 vote
1 answer
324 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: ...
SchinkTasia's user avatar

15 30 50 per page
1
2 3 4 5
17