简体   繁体   English

如何使用Spring LDAP模板连接到AWS Simple AD LDAP

[英]How to connect to AWS Simple AD LDAP using Spring LDAP Template

I created Simple AD in AWS and also Joined a Windows EC2 instance to that Simple AD. 我在AWS中创建了简单广告,还将Windows EC2实例加入了该简单广告。 But the use case is to access Simple AD from a Java application(using Spring LDAP Template) and create/update a user inside that AD. 但是用例是从Java应用程序(使用Spring LDAP模板)访问Simple AD并在该AD中创建/更新用户。 Here are the application.properties I am providing 这是我提供的application.properties

ldap.partitionSuffix=dc=test, dc=directory, dc=com
ldap.principal=uid=Administrator
ldap.password=#######
ldap.port=389
ldap.url=ldap://172.35.51.160:389

The application is not able to connect to Simple AD. 该应用程序无法连接到简单AD。 Giving Connection time out Exception. 提供连接超时异常。

Try to run the code in the same VPC as Simple AD. 尝试在与Simple AD相同的VPC中运行代码。 172.35.51.160 is private IP address in your VPC. 172.35.51.160是您的VPC中的专用IP地址。

If you want access Simple AD server from public Internet, then put ELB and HA Proxy in front of Simple AD. 如果要从公共Internet访问Simple AD服务器,则将ELB和HA代理放在Simple AD的前面。

ELB -> HA Proxy -> Simple AD. ELB-> HA代理->简单AD。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM