Passer au contenu

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

demandé il y a 2 ans425 vues
1 réponse
1
Réponse acceptée
  • 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.
EXPERT
répondu il y a 2 ans
EXPERT
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.