242 questions
0
votes
0
answers
30
views
What's the ldap query for ldapsearch to fetch MinPwdLen attribute from windows adserver?
How can the query be found to get the value of attributes like MinPwdLen, MinPwdAge, etc., from a Windows AD server? I got the distinguished name for this attribute from JXplorer, but I'm unable to ...
0
votes
0
answers
132
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
114
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
1
answer
598
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 ...
13
votes
5
answers
43k
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 ...
0
votes
0
answers
136
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
67
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
444
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:
...
1
vote
1
answer
7k
views
What's the best way to write an LDAP client in Python
I don't know LDAP but I need to develop an application (essentially a LDAP client) for authentication on an LDAP Server and perform a query/search in the directory managed by the LDAP Server.
My ...
0
votes
0
answers
3k
views
Confusion about "python3-ldap" and "ldap3"
We have an older app that is running on a Redhat 7 machine and was originally written in python 2.x and imports and uses "ldap3".
We are now starting to upgrade to Redhat 8 and since it ...
0
votes
1
answer
1k
views
Pattern matching in LDAP Distinguished Name Template
I am trying to authenticate users using django_auth_ldap. I have users in 2 different groups (say= Theta & Gamma, Alpha & Rho),
Currently, to search users I have created 2 authentication ...
0
votes
0
answers
284
views
Changing AD user password when "Password must change at next logon"is checked using ldap3
I am working on an application which uses ldap3 to authenticate AD user and warn the users about their password expiry date. This works fine.
The issue happens when the user has checked "Password ...
0
votes
1
answer
1k
views
LDAP search takes too long
I'm trying to get more than 50.000 records from LDAP (with python-ldap and page control tools).
I have searching filter, which is
(|(field=value_1) (field=value_2)...(field=value_50000)
But this ...
1
vote
0
answers
241
views
Unable to create Lambda layer with python-ldap library
I am trying to create a lambda layer with python-ldap and I am getting error:
docker run -v "$PWD":/var/task "public.ecr.aws/sam/build-python3.9" /bin/sh -c "/var/lang/bin/...
0
votes
2
answers
568
views
Issue Querying LDAP from Unix Bash using Python
I am reading a csv file containing list of employees(GRCLOGIN.csv) and retrieving employee ID to Query LDAP to retrieve their related data and save it to a text file(LDAP_USERS.txt)
from sys import ...
1
vote
0
answers
849
views
Python ldap delete computer object
I am currently trying to delete some computer objects from the AD using python LDAP when they are deleted/decommissioned (basically any cloud instance which joins our on-pre AD domain upon creation ...
0
votes
1
answer
3k
views
I cant import LDAP module in Python
i installed python-ldap and ldap3 :
(einstieg) C:\Users\User\Python\modules>pip freeze
ldap3 @file:///C:/Users/User/Python/modules/ldap3-2.9.1-py2.py3-none-any.whl
pyasn1 @
file:///C:/Users/User/...
0
votes
2
answers
2k
views
python-ldap stronger authentication
I'm trying to make a search in our AD with python-ldap.
When I try to make the:
connect.simple_bind_s('ldap_login', 'ldap_password')
I am getting the error:
ldap.STRONG_AUTH_REQUIRED: {'msgtype': 97,...
0
votes
1
answer
476
views
Can returned attributes be forced into lowercase
Changes on our LDAP Server have changed the case of the attributes returned from search. For example, "mailroutingaddress" is now "mailRoutingAddress". The searches themselves are ...
1
vote
2
answers
337
views
How to install a LDAP schema with python-ldap?
I have a LDAP schema in a .ldif file that I would like to use python-ldap to install the schema on my LDAP server. My context is the installation process of a python application that needs some custom ...
0
votes
1
answer
840
views
How to troubleshoot a failing Django LDAP connection
I am using Django Rest with active directory authentication.
I have built a simple app with the following settings:
import ldap
from django_auth_ldap.config import LDAPSearch, GroupOfNamesType
# ...
1
vote
1
answer
703
views
Install a python module in the same directory as the main handler
Hello I want to install a module named python-ldap locally in the same directory as my main so that it could be zipped and uploaded as a standalone function. The reason is AWS Lambda doesn't support ...
0
votes
0
answers
330
views
Python LDAP: Get all group memberships recursively
Using Python LDAP, how do I get all the groups a user is a member of, recursively.
For example if a user is member of the group "Zurich", which is part of the group "Switzerland", ...
0
votes
2
answers
4k
views
trying to parse ldif file using python-ldap ldifparser
I have ldif file as below, I want to extract only the dn and changetype here using the ldif parser of python-ldap package.
dn: cn=abc, cn=def, cn="dc=grid,dc=mycompany,dc=com", cn=tree, cn=...
0
votes
1
answer
956
views
Odoo 14 on windows can't enable LDAP Authentication
I tried to enable LDAP Authentication on ODOO 14 which is install on Windows Server and when click save i got the following error
"Error:
Odoo Server Error
Traceback (most recent call last):
...