How to create a user in a SimpleAD directory remotely through python.

0

Hello,

I'm currently working on a project in which i need to create users in a Simple Ad remotely and programatically. To achieve this I was using the boto3 call "create_users" of workdocs, but now I'm looking for how to do this through ldap.

I'm trying to connect to my directory using the ldap3 library for python, but the connection times out every time. I'm using the directory DNS name (ex: corp.example.com) to make the connection.

Thank you

  • please accept the answer if it was useful

asked 21 days ago120 views
1 Answer
1
Accepted Answer
  • 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.
profile picture
EXPERT
answered 20 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions