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
질문됨 한 달 전173회 조회
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
지원 엔지니어
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠