我在 Windows 上运行的虚拟机(centOS)上安装了 LDAP 服务器,现在我想从 Windows 访问它
那么如何启用对 LDAP 服务器的远程访问。
我尝试安装 389 Directory Server(实际上是用于 fedora),在一些论坛上我听说它是一个简单的 GUI,可以轻松完成命令行作业,但我没有找到启用远程登录或任何 ip 的选项过滤器。
注意:
- 我正在尝试使用 Java 登录 LDAP 服务器进行身份验证和授权,为此我使用 unboundid api
- 您可以建议我应该使用哪个 api,我只是一个初学者。
更新:
我的java代码
LDAPConnection ldap = new LDAPConnection("http://xxx.xx.xx.xxx", 9830);
错误
an error occurred while attempting to connect to server http://xxx.xx.xx.xxx:9830: java.io.IOException: An error occurred while attempting to establish a connection to server http://xxx.xx.xx.xxx:9830: java.net.UnknownHostException: http://xxx.xx.xx.xxx')
我还尝试了 ldap://xxx.xx.xx.xxx 而不是 http://xxx.xx.xx.xxx
最佳答案
不要将服务器地址指定为 URL。只需将地址指定为 IP 地址或可解析名称即可。因此,不要使用“http://xxx.xx.xx.xxx ”,只需使用“xxx.xx.xx.xxx”。
关于java - 允许远程登录 LDAP 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24727807/