Skip to main content

Questions tagged [ldap3]

The tag has no usage guidance.

1 vote
1 answer
29 views

Can't use Python ldap3 to get recursive users of an LDAP group

I am using Python3 ldap3 library to query my entreprise's LDAP (AD). Querying groups and group members works fine, excepted when I try to use extensible matching rule "LDAP_MATCHING_RULE_IN_CHAIN&...
Tjamat's user avatar
  • 213
0 votes
1 answer
102 views

Using Kerberos to authenticate Django Application in Corporate Environment

I am trying to use Kerberos and LDAP3 to authenticate my Django Application inside the corporate network. When I am logged in to my corporate computer, I want my application to be able to login ...
CodeComet's user avatar
1 vote
0 answers
181 views

Python LDAP3 error certificate verify failed: EE certificate key too weak

I have the following python code with the ldap3 library that I use to connect via LDAPS to an active directory: tls_configuration = Tls( validate=ssl.CERT_REQUIRED, version=ssl....
Arkham's user avatar
  • 11
0 votes
0 answers
35 views

Pyhton ldap3 NTLM unable to return json.loads data

Trying to add an AD user account to a AD group using python with ldap3 using the following script: # Import necessary modules and libraries import requests from flask import json from ldap3 import ...
bart van run's user avatar
1 vote
0 answers
38 views

Python LDAP3 Changing Account Values

I'm trying to create a script to go through and find all the accounts in my AD that have an expiration date, and that date is today. The script will then go over to Canvas LMS and disable that account,...
Eric Dannewitz's user avatar
0 votes
0 answers
56 views

ActiveDirectory autentication with Python

I am working on small project with creating tons of accounts in AD, using ldap3. So at this moment for establish connection with AD I'm using try: conn = Connection(ad_server, user='domain\\' + ...
Mateusz Kowalski's user avatar
0 votes
1 answer
409 views

Python ldap3 error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)

I am trying to connect to ldap server from python framework with the help of ldap3 libraries on Mac M1. from ldap3 import Server, Connection, SUBTREE, ALL, Tls, MODIFY_REPLACE from fastapi import ...
K P's user avatar
  • 13
2 votes
1 answer
50 views

How to add the AD group pemission to access file(shared path access) using ldap3 or any other python library?

I want to share the example of manual efforts here. I have already created a users and ad groups by having ldap connection binding using ldap3. I can see ldap3 supports automation for use cases like ...
Vimal Nayak's user avatar
0 votes
0 answers
56 views

Ldap3 python modify password

Have some problem with modify password in AD using modifyResponse. On ipa.demo1.freeipa.org script is working. On my win 2012 server i have success response, but password not changing. Code ...
saveprog's user avatar
0 votes
0 answers
204 views

Python3 LDAP3/GSSAPI authenticate Active Directory with negotiate token got from browser

Hello i have a local web app running as windows service, this web app receive a negotiate token from the browser, my service need to check that user token is valid (passworless based on windows login) ...
Crafty's user avatar
  • 23
0 votes
0 answers
53 views

Long connection to active directory using python

I'm using library ldap to connect to active directory. import logging import ldap logging.basicConfig( level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ) ...
Username18's user avatar
1 vote
2 answers
96 views

python ldap3 reader.search_paged method returning 0 results - What am I doing wrong?

I'm using the ldap3 library version 2.9.1 and python 3.10 on Windows 10. My search is working using the Reader.search method but when I switch to the Reader.search_paged, I get 0 results. Even if the ...
Rick's user avatar
  • 113
1 vote
0 answers
512 views

python3, ldap3, fastapi, how to make a connection pool for authentication endpoint

I'm an inexperienced self-taught developer. I have built an API with fastapi in python3, some endpoint are for authentication via ldap against a microsoft AD, those endpoints are handled via a router, ...
dada216's user avatar
  • 11
0 votes
1 answer
94 views

I can't modify the name of ldap3 python

I get the error attribute 'sn' is read only In ldp.exe from this user I can modify other users, I have privileges and their 'sn' attribute isn't read only, but in python is, why? console result while ...
godelko ツ's user avatar
1 vote
1 answer
91 views

Retrieving CRL binary cert using LDAP3 Python Module

I am trying to retrieve a CRL cert hosted on an LDAP server using Python 3.9.16 and LDAP3 module When I use ldapsearch and the command /bin/ldapsearch -x -H ldaps://<HOST>:<PORT> -Z -b &...
Barry's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
12