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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南