LDAP3 connection server FAIL --> Server not found --> Error Category: UNCLASSIFIED_ERROR; LDAPSocketOpenError: invalid server address

0

i can acceed with ubuntu and AWS Cli in WSL1 environment, to a ldap server, using ldap3 library on my WSL1 Python3 environment. but when trying to migrate the code to AWS Cloud Environment, can not find the server despite configurating the proxy in the same scripts on AWS Glue Console. in python shell and pyspark scripts, i ve tried in different ways to access to this LDAP Server, but can not do it. ¿ CAN You help me please ? telling me what CODE To use in Python3.9 or PySpark for connect to that server LDAP

FCQ
已提问 1 个月前174 查看次数
1 回答
0
  • As you have mentioned that you are able to access the LDAP server locally, it seems the concerned error is due to some networking issue.

  • If you're using a connection in your AWS Glue job to connect to the LDAP Server, kindly check its networking configuration. Whenever, we attach a connection, Glue launches elastic network interfaces (ENIs) in a VPC/private subnet which provide network connectivity for AWS Glue through your VPC. Each elastic network interface gets a private IP address from the CIDR range of the subnet used in the connection. No public IP addresses are assigned. [+] https://docs.aws.amazon.com/glue/latest/dg/start-connecting.html

So, all the data stores that are accessed by the job must be available from the VPC subnet. The VPC needs to have a Network Address Translation (NAT) gateway inside the VPC to connect with a public host.

You can verify this by configuring an EC2 instance with the same network configuration as your connection. If you are able to telnet from your EC2 instance terminal to the host without issues, then you have confirmed that the host is reachable.

  • If you're not using any connection in your AWS Glue job, then the traffic would flow from the public IPs. So, make sure your host is accepting the traffic from any public IPs.

  • For specific troubleshooting of your job, you can create a case with the AWS Technical Support and provide the concerned job run id.

AWS
支持工程师
已回答 1 个月前
profile picture
专家
已审核 1 个月前

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

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

回答问题的准则

相关内容