Questions tagged [ldap3]
164 questions
0
votes
1 answer
Django Web Application Access Active Directory
I am trying to get user's Active Directory information on the local intranet network, from an Django Web Application.
What I want: ** When Users/Client log on to the website, they can see their various details from the Active Directory **
If the…

Saurabh Lall
- 5
- 3
0
votes
1 answer
Password Change - LDAP3 - Python - Raspberry Pi
I'm on the very last section of my password changer, and for some reason it just won't change the password. It's connecting to the AD server fine (checked event logs), there are no errors when trying it, but for some reason the password won't…

Adam Brewell
- 11
- 4
0
votes
1 answer
Flask LDAP3 Auth Blueprint fails with Uninitialized ASN.1 value
I'm trying to put together a flask blueprint for LDAP3 auth. If I use the same code as a standard flask app, everything works as expected, the bind is successful and the user auth also succeeds:
DEBUG:root:Validating LDAPLoginForm against…

Zoidberg
- 21
- 3
0
votes
1 answer
python ldap3 function for massive ldap searches
I'm new to ldap3 library and I'm trying to build a function that need to search ldap for 55.000 uids and retrieve their mail attribute.
Here is what it looks like :
def ldapsearch(i):
server = Server('myserverurl:389')
try:
with…
0
votes
0 answers
LDAP login returns Invalid Username/Password when Flask application is deployed via Apache
LDAP login works when my Flask App is launched (locally), however, using the same code and server, when deploying the app via Apache, LDAP returns 'Invalid Username/Password'.
The following are the only logs I could find:
DEBUG:root:Validating…

Daniel Micallef
- 312
- 1
- 3
- 13
0
votes
1 answer
Python3 Ldap3: Cannot add entities ( new user object) on ldap via python script
I am writing a python code to be able to add a new user account on LDAP.. Pyhton3 and LDAP3.. so far i can search the data out .. but i can not insert a new user into LDAP via script.. But same account i can insert by using fusiondirectoy.
Issue: it…

swongr18
- 33
- 6
0
votes
0 answers
Unable to Pickle ldap3 datetime object with tzinfo attribute
from ldap3 import Server, Connection, ALL
import pickle
server = Server('ipa.demo1.freeipa.org', get_info=ALL)
conn = Connection(server, 'uid=admin,cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org', 'Secret123', auto_bind=True)
entries =…

dangel
- 7,238
- 7
- 48
- 74
0
votes
1 answer
Binding with variable for username/pwd
I am trying to take login input and pass to our AD server to authenticate a user. I keep getting an error : invalidCredentials, but I have verified the credentials a number of times. Am I using the variables correctly? Any feedback is…

AlliDeacon
- 1,365
- 3
- 21
- 35
0
votes
1 answer
Active Directory authentication using ldap3 python, how to avoid clear text password
I know the below question has been asked multiple times and answer which i could find is that get SSL certs.
But how to go around it without SSL?
Here is the problem:
I have been implementing a Rest based API which authenticates a user with Active…

Nik
- 431
- 1
- 6
- 10
-1
votes
1 answer
Compare LDAP Password with another value (ldap3, Python)
I want to implement a comparison-function with ldap3 in Python that can compare a user-given value with a password stored in my ldap-entry.
This is easy to do with non-salted passwords but I'm struggling with salted ones.
For example, the stored…

Luxman
- 59
- 4
-1
votes
1 answer
LDAP Query in Python3
I have an LDAP Query which is running perfectly fine in my terminal
ldapsearch -h ldap.mygreatcompany.com -D user@mygreatcompany.COM -w "$ldappassword" -b "DC=abc,DC=mygreatcompany,DC=com" -s sub "(mail=user1@mygreatcompany.COM)" sAMAccountName
I…

Kishan Kumar Gupta
- 151
- 3
- 9
-1
votes
1 answer
Retrieve all AD-GROUP names in LDAP using python. (Not looking to retrieve group members)
I am trying to retrieve all AD-GROUP Names using python from LDAP. using "ldap3" python library.
I failed to find a way to get through using python. Can you please let me know if you guys have any idea to get it.
I am can retrieve ALL available…

Hara
- 1,467
- 4
- 18
- 35
-1
votes
1 answer
how to retrieve password in django 2.0?
Im using ldap for user authentication in django 2.0, and i need to create an endpoint to authenticate user from another application just passing the username to then redirect them. Isnt yet something to retrieve the raw password?

Jcc.Sanabria
- 629
- 1
- 12
- 22
-2
votes
1 answer
How to fix "LDAPInvalidPortError: Port must be an integer"
I'm trying to connect to a server using LDAP. I've gotten the script to work on a test server that didn't use a specific port number. When trying to connect to our Dev-System, which uses a specific port I receive the following error:
File…

Christopher Zerbe
- 33
- 1
- 5