跳至内容

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

已提问 2 年前425 查看次数
1 回答
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.
专家
已回答 2 年前
专家
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。