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
asked 24 days ago160 views
1 Answer
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
SUPPORT ENGINEER
answered 21 days ago
profile picture
EXPERT
reviewed 21 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions