Questions tagged [ldap3]

164 questions
0
votes
1 answer

Python ldap3 Reader return only one value

I am trying to use Python ldap3 to retrieve users from a ldap. This is my setup from ldap3 import Server, Connection, ObjectDef, AttrDef, Reader, Writer, ALL server = Server('ldap://ldapserver:389', get_info=ALL) conn = Connection(server,…
José Cousiño
  • 399
  • 1
  • 6
  • 15
0
votes
1 answer

Search AD groups with square brackets in name

I want to query Active Directory for group memberships of groups with square brackets in their names (e.g test[group]data). I am using Python 3.6.5 with the ldap3 libraries. Finding other groups and resolving group memberships works totally fine.…
Dfate
  • 13
  • 4
0
votes
0 answers

Getting IndexError: list index out of range when changing password

I'm working on a small app to change user password in AD using ldap3 and flask as a front end. It works perfectly in the desktop IDLE and the password gets changed in AD I'm able to make it work successfully without using Flask, but wen I move the…
ivon pint
  • 3
  • 3
0
votes
1 answer

Adding a user to POSIX or "memberOf" groups in OpenLDAP

I'm using Python ldap3 module to work with an OpenLDAP server. I've been able to query, and add, users to an OU, but can't figure how to add users to groups (both POSIX and memberOf/groupOfNames overlay). I found an Active Directory "way" of doing…
Server Fault
  • 637
  • 1
  • 6
  • 16
0
votes
1 answer

No module named 'flask_ldap3_login'

I am setting up flask login page with ldap3. I am using python 3.6.8 and using ldap3. After pip3 install flask-ldap3-login I am getting ModuleNotFoundError: No module named 'flask_ldap3_login' I found…
Da No
  • 69
  • 2
  • 10
0
votes
0 answers

Python Ldap module limits search for 1000 users, how to use simple search?

I am using Ldap3 module in python to query AD, however i get result if the ad account is in first 1000 searches, i have more than 25000 + user ids in AD, how i can change my code here into simple page search, Please help me. '''' import sys from…
0
votes
1 answer

Flask ldap3 issue with login

I am using Ldap3 with Flask python. I am getting the error when I tried to login: TypeError: Object of type 'Attribute' is not JSON serializable Here is the code: def ADlogin(username,password): server = ldap3.Server(server_uri,…
DevPy
  • 439
  • 6
  • 17
0
votes
0 answers

Connecting to LDAP server using ldap3 python library where hostname is implicit

Consider a LDAP URL ldap:///CN=Services,CN=Configuration,DC=com?testfile;binary I know /// means my local machine is already communicating with the LDAP server or it has some knowledge about the LDAP server. Now, How do I connect using ldap3 library…
Sushruth N
  • 191
  • 2
  • 15
0
votes
1 answer

Parsing DN, attributes from LDAP URL in Python

I have an URL "ldap://ldap.infonotary.com/dc=identity-ca,dc=infonotary,dc=com" I wanted to get the LDAP DN and attributes from this URL using ldap3 library in python3. If I pass the whole URL to a class, I should be able to get DN, attributes from…
Sushruth N
  • 191
  • 2
  • 15
0
votes
1 answer

Python3.6 Ldap3 modify_dn ( Renaming + Moving User to another OU)

I'm trying to rename AD user Test_2 to testing using python LDAP3 as well as moving user to another OU too. NOTE: instead of domain name i am using IP and rest is same. i am successfully able to fetching user details using the same manner (Mentioned…
0
votes
1 answer

How to tell Python's ldap3 module to TLS version 1.2 explicitly?

I am attempting to use the ldap3 Python module to authenticate to ldap, but I'm wanting to verify if my connection is using TLS version 1.2. Relevant code snippet: tls = Tls(validate=ssl.CERT_REQUIRED, version=ssl.PROTOCOL_TLSv1_2) server =…
Source Matters
  • 1,110
  • 2
  • 15
  • 35
0
votes
0 answers

Giving AD group permissions to manage another AD group in Python

I was trying to add permission for managing one AD group to another AD group via Python. In powershell its done by the "DSACLS" command and i was trying to find a way to do it in Python through the ldap3 module, but if its possible via any other…
0
votes
1 answer

ldap3 python modify replace an object with filter

How can we filter when applying ldapmodify? For eg: this is how my user object looks like: dn: mail=abc@d.com,ou=users,dc=dev,dc=com sn: po givenName: abc pin: 1234 mail: abc@d.com telephoneNumber: 11234567890 enabled: FALSE city: city cn:…
inquisitive
  • 3,738
  • 6
  • 30
  • 56
0
votes
1 answer

Unable to connect to ldap using python ldap3 module

I am using Online LDAP Test Server(https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/) I am trying to connect to it using python ldap3 module. This is my code: import ldap3 user = 'riemann' password =…
GopiKrishna
  • 109
  • 1
  • 6
0
votes
0 answers

Cannot load ldap3 python module in ExecuteScript processor

I am trying to run a python script in a NiFi ExecuteScript processor. This script uses the ldap3 library from: https://pypi.org/project/ldap3/. I am aware that the processor runs Jython, and that I am unable to use compiled code, .so files, etc. but…
Charlie Joynt
  • 4,411
  • 1
  • 24
  • 46
1 2 3
10
11