1 Answer
- Newest
- Most votes
- Most comments
1
- Ensure that the DNS name corp.example.com is resolvable from the machine running your Python script.
- You must have network connectivity between the machine where you execute your script and AD server (VPN, Peering, etc.)
- Verify that the necessary ports (default LDAP port 389 or LDAPS port 636) are open and accessible, check Security Groups and NACLs
- Ensure that the user credentials you are using have sufficient permissions to create new users in the directory.
- If using a firewall or VPN, check if they are allowing LDAP traffic.

please accept the answer if it was useful