Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

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 ...
DC007's user avatar
  • 1
0 votes
0 answers
108 views

I know, you'd ask why I would want to this, so I have a WHL file to install on windows with a title like : nameAndVersion-cp38-cp38-win_amd64.whl Sadly, it does not install the result is : Error "...
Mathieu Bragard's user avatar
0 votes
0 answers
132 views

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
1 answer
53 views

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
114 views

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
2 answers
2k views

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
597 views

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
  • 968
1 vote
1 answer
2k views

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
13 votes
5 answers
43k views

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
  • 163
-1 votes
1 answer
598 views

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
135 views

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
196 views

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
66 views

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
716 views

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,656
1 vote
1 answer
444 views

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

I'm trying to use the python-ldap library to connect to an Active Directory Server. I'm using the code found in this link. Authentication by simple bind The following code works correctly: con = ldap....
User051209's user avatar
  • 2,658
1 vote
1 answer
7k views

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 ...
User051209's user avatar
  • 2,658
2 votes
0 answers
537 views

I have been researching on how to implement an authentication using python-ldap. Upon trying some codes and reading the documentation I've come up with the code below, upon testing, it always return &...
chayi's user avatar
  • 41
0 votes
0 answers
3k views

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 ...
jstack100's user avatar
  • 1,396
0 votes
1 answer
1k views

try to find user information from ldap, but I get the timed out error. locally it is working I've tried with both python-ldap and ldap3 at this moment, I am confused as I see some documentation and ...
GeoCom's user avatar
  • 1,404
0 votes
1 answer
1k views

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 ...
Pratik Gujarathi's user avatar
2 votes
1 answer
570 views

I am trying to create a service account via the Ldap3 library in Python. The service account is successfully created, but there is a small problem. The "User cannot change password" ...
user2273231's user avatar
0 votes
0 answers
284 views

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 ...
therealdanish's user avatar
0 votes
0 answers
133 views

My Vm have multiple interfaces and I need to choose a particular interface to be used with python ldap client. But I didn't find any way on how to specify an interface for ldap client. Each time it ...
RunSingh's user avatar
0 votes
1 answer
1k views

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 ...
Женя Солодковая's user avatar
0 votes
0 answers
714 views

I have an error when I try to create a new user in my active directory with python ldap. The connection to the server works since the search function works. Here is my code, I apologize in advance if ...
Jinr0h404's user avatar
1 vote
0 answers
241 views

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/...
rholdberh's user avatar
  • 617
2 votes
0 answers
1k views

Tried installing python-ldap, but failed "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG ...
Dharmendra Rathod's user avatar
0 votes
2 answers
568 views

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 ...
syed ali's user avatar
2 votes
2 answers
5k views

I'm getting the following error when trying to install python-ldap module in Docker image for aws: In file included from Modules/LDAPObject.c:3:0: Modules/common.h:15:10: fatal error: lber....
5kobrat's user avatar
  • 61
1 vote
0 answers
849 views

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 ...
IgniteLX's user avatar
0 votes
1 answer
2k views

Using python-ldap to search active directory. How do I exclude certain user with a specific OU? Searching within the group 'GON' and want it to return just regular users with OU=Users and not OU=Foo. ...
anonymously132526's user avatar
0 votes
1 answer
3k views

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/...
Chorum's user avatar
  • 59
0 votes
1 answer
334 views

In my LDAP directory, Users are added to Organizational Units instead of groups. How can I check whether a user is a part of an Organizational Unit using Django LDAP ? My settings.py file: ...
alucor-it's user avatar
  • 133
0 votes
2 answers
2k views

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,...
chrisaramar's user avatar
0 votes
1 answer
530 views

I wrote a python script to find out the users who does not have uid (User ID) in the ldap server but I am getting weird results. from ldap3 import Server, Connection, ALL import csv server = Server('...
Robin Malhotra's user avatar
0 votes
1 answer
476 views

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 ...
Stephen Jarjoura's user avatar
4 votes
1 answer
2k views

When trying to install the latest python-ldap version 3.4 on an apline docker image (I use python:3.9-alpine as my base image) the build of python-ldap fails with: ... /usr/lib/gcc/x86_64-alpine-linux-...
krnnrt's user avatar
  • 43
1 vote
2 answers
337 views

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 ...
azmeuk's user avatar
  • 4,656
0 votes
2 answers
2k views

I am using python-ldap to process an LDIF file and (conditionally) import the records from that file into an LDAP server. Every piece of documentation and every example I can find, just assumes LDIF ...
mvreijn's user avatar
  • 2,962
0 votes
1 answer
839 views

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 # ...
Moe's user avatar
  • 1,537
1 vote
1 answer
3k views

I just cant get python-ldap to work inside AWS-Lambda. I have a simple Lambda script: import ldap def main(): print("Success") and a Layer I built on an EC2 AmazonLinux2 (which works ...
5kobrat's user avatar
  • 61
1 vote
1 answer
703 views

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 ...
5kobrat's user avatar
  • 61
0 votes
0 answers
2k views

I am trying to get a particular user from AD using the ldap3 python module. Here is how I am trying to do it: from ldap3 import Server, Connection, ALL srv = Server('company.com', get_info=ALL) conn =...
a298b112's user avatar
  • 111
0 votes
0 answers
329 views

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", ...
Thorben Croisé's user avatar
1 vote
1 answer
693 views

I'm using the "import ldap" in a python code. This is on a windows 10 machine. I installed the python-ldap module pip3 install python-ldap Installed the dependencies based on the ...
Rajesh Kazhankodath's user avatar
0 votes
2 answers
4k views

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=...
user1795999's user avatar
0 votes
1 answer
1k views

I am trying to install python-ldap on ubuntu 20.04 pip3 install python-ldap It complains about this command error x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -...
James Lin's user avatar
  • 26.8k
0 votes
1 answer
956 views

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): ...
Rami Ahmad's user avatar
2 votes
1 answer
344 views

Using python-ldap.search_s() function (https://www.python-ldap.org/en/python-ldap-3.3.0/reference/ldap.html#ldap.LDAPObject.search_s) with params... base = DC=myorg,DC=local filterstr = (&(...
lampShadesDrifter's user avatar

1
2 3 4 5