Questions tagged [ldap3]

164 questions
0
votes
0 answers

Use ldap3 to add entries, and report an error after adding more than 4000 entries

enter image description here If users are added at this time, an error will be reported enter image description here If I want to delete the added user at this time, I can't delete it randomly, and may report an error enter image description…
sky
  • 1
0
votes
1 answer

Is there any way to roll back execution of delete method with ldap3

I'm using Django 4.1 and ldap3 to connect directory service using ldap. Is there any way to roll back execution of delete method? the sample code likes below: # import class and constants from ldap3 import Server, Connection, ALL # define the…
Alireza.Sh
  • 28
  • 3
0
votes
0 answers

ldap3 python search members of a group and retrieve their sAMAcountName (NT Username)

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 getting user name as output but after few I'm…
shlco
  • 1
  • 2
0
votes
0 answers

flask_ldap3_login is not accepting user credentials: AuthenticationResponseStatus.fail

I tried using the same flask_ldap3_login code as described in the documentation. For that purpose, I adjusted the code for my company intern LDAP. The code is shown below: from flask_ldap3_login import LDAP3LoginManager config = dict() # Hostname…
jfst
  • 1
  • 3
0
votes
1 answer

Python Multiple LDAP3 Authentication

I have two questions...the first is I can authenticate using the below with my email address but I cannot with my AD Username. I have changed "username": "mail" --> "username": "sAMAccountName" didn't work...also tried "uid" nothing doing...so…
0
votes
1 answer

AWS Lambda python ldap query

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 instruction how to use/deploy ldap on AWS Lambda…
GeoCom
  • 1,290
  • 2
  • 12
  • 33
0
votes
1 answer

How to safely authenticate a user using LDAP?

For context: I am developing a web application where users need to authenticate to view internal documents. I neither need any detailed info on users nor special permission management, two states are sufficient: Either a session belongs to an…
TuringTux
  • 559
  • 1
  • 12
  • 26
0
votes
2 answers

Search for givenName and surname attribute for the id we provide during login for ldap3 in python and flask

I was able to set up the authentication for my flask app using ldap3. We use active directory and hence I used ldap3 to connect to our active directory and verify the users against input credentials. The problem I am having is with the way it has…
BishwashK
  • 183
  • 9
0
votes
1 answer

LDAP 000021B1: SvcErr: DSD-0315154A, problem 5005 (UNABLE_TO_PROCEED),

I'm using a rust program to perform a modify_replace command on an Active Directory group. This command modify_replaces aroung 30,000 users. I verified the user has read/write access to the group. I'm modifying the member attribute on a group…
Brandon Kauffman
  • 1,515
  • 1
  • 7
  • 33
0
votes
0 answers

how to save file on server (Ldap3 authentication using python)

I've already got a successed authentication using this code: from ldap3 import Server, Connection, ALL # define the server s = Server('ldap://***.***.**.201:389', get_info=ALL) # define the connection c = Connection(s, user='***',…
Gerzzog
  • 95
  • 7
0
votes
0 answers

ldap3.core.exceptions.LDAPPasswordIsMandatoryError: password is mandatory in simple bind

I am trying to set up authentication with flask and ldap3. For this I have a global_authentication.py, a main.py in which I create Flask and perform the view, as well as a loginform.py where the template for the login is located, a login.html and a…
0
votes
0 answers

Passing thru Password field to run( sys.executable) error on run

on command: On conn bind pass true ldap3.extend.microsoft.modifyPassword. ad_modify_password(conn, dn, password, old_password=None) On View.py scriptFile = 'support01\\ldap_cmd.py' base_dir = settings.BASE_DIR …
Mike Lim
  • 1
  • 3
0
votes
0 answers

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 must change the password at next logon" and on…
0
votes
1 answer

Rust LDAP with auth

How do I connect to ldap using Rust? All I could find from the online docs was this: use ldap3::result::Result; use ldap3::{LdapConn, Scope, SearchEntry}; fn main() -> Result<()> { let mut ldap = LdapConn::new("ldap://localhost:2389")?; let…
Brandon Kauffman
  • 1,515
  • 1
  • 7
  • 33
0
votes
2 answers

ldap3 extend.microsoft.modify_password keeps returning false

I'm trying to modify an user account password in but it doesn't work, I've tried it directly in AD and it does work. I'm using ldap3 to do it, here's the steps I do. First I do the app operation like this from ldap3 import Server, Connection, ALL s…
Fujah
  • 1
  • 2