Ir para o conteúdo

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

feita há 2 anos425 visualizações
1 Resposta
1
Resposta aceita
  • 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.
ESPECIALISTA
respondido há 2 anos
ESPECIALISTA
avaliado há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.