Active directory 如何通过LDAP使用Active Directory身份验证对Apache Guacamole进行身份验证?

Active directory 如何通过LDAP使用Active Directory身份验证对Apache Guacamole进行身份验证?,active-directory,ldap,ubuntu-18.04,guacamole,Active Directory,Ldap,Ubuntu 18.04,Guacamole,在我配置了下面的配置之后,它没有连接到Active Directory。我无法使用Active Directory帐户登录。有什么问题吗 我有一个带有ApacheGuacamoleV1.0.0的Ubuntu服务器18.04。安装。我想使用LDAP身份验证来验证用户。我已经下载了guacamole-auth-ldap-1.0.0.jar和jldap-4.3.jar扩展 ldap主机名:10.10.10.21、10.10.10.22 ldap端口:389 ldap用户基础dn:OU=Users,DC

在我配置了下面的配置之后,它没有连接到Active Directory。我无法使用Active Directory帐户登录。有什么问题吗

我有一个带有ApacheGuacamoleV1.0.0的Ubuntu服务器18.04。安装。我想使用LDAP身份验证来验证用户。我已经下载了guacamole-auth-ldap-1.0.0.jar和jldap-4.3.jar扩展

ldap主机名:10.10.10.21、10.10.10.22

ldap端口:389

ldap用户基础dn:OU=Users,DC=zoz,DC=lan

ldap用户名属性:CN

ldap配置基本dn:OU=Users,DC=zoz,DC=lan

ldap加密方法:无

我希望它应该连接到域控制器。但是,当我使用命令“ldapsearch”时,它会给我一个错误,即它无法联系LDAP服务器。

请尝试此操作

ldap-hostname: 
ldap-port:
ldap-username-attribute: sAMAccountName
ldap-encryption-method: none
ldap-search-bind-dn: binduser@domain.com
ldap-search-bind-password: password
ldap-config-base-dn: dc=domain,dc=local
ldap-user-base-dn: OU=myou,DC=domain,DC=local
ldap-user-search-filter:(objectClass=user)(!(objectCategory=computer))
ldap-max-search-results:400

重新启动Tomcat和gucad

这似乎是一个网络问题(而不是ldap问题)。在运行鳄梨酱的机器上,telnet 10.10.10.21 389的输出是什么?在我的服务器上,telnet 10.10.10.21 389>的输出是:正在尝试10.10.10.21。。。连接到10.10.10.21。转义字符是“^]”。好的,这不是网络问题。您是否尝试只设置一个主机
ldap主机名:10.10.10.21
?请提供任何日志/错误输出。很抱歉我反应太晚。同时,我在guacamole.properties中添加了以下语句:ldap搜索绑定dn:CN=Jurre de Vries,OU=Students,OU=Users,DC=zoz,DC=lan,然后是ldap搜索绑定密码:*****。当我使用用户名Jurre de Vries和密码*******在鳄梨酱中进行身份验证时。我在鳄梨酱中遇到的错误是:无法从LDAP目录查询对象列表。而catalina.out说:[http-nio-8080-exec-1]INFO o.a.g.r.auth.AuthenticationService-用户“Jurre de Vries”成功地从10.70.247.171进行了身份验证。