You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "sbcbus (Jira)" <ji...@apache.org> on 2025/05/02 17:47:00 UTC
[jira] [Comment Edited] (GUACAMOLE-2051) LDAP user attributes do not work when specified in ldap-servers.yml, at all with 1.6.0+
[ https://issues.apache.org/jira/browse/GUACAMOLE-2051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17948949#comment-17948949 ]
sbcbus edited comment on GUACAMOLE-2051 at 5/2/25 5:46 PM:
-----------------------------------------------------------
Hmm, am I missing something or is it something in docker?
In staging/1.6 - ldap-servers.yml:
{noformat}
user-attributes: OSUrdpWS01, OSUrdpWS02, OSUrdpWS03, cn{noformat}
*In test connection 1 Test #1:*
Username: ${LDAP_CN}
_Result: RDP server closed/refused connection: Authentication failure (invalid credentials?)_
*In test connection 1 test #2:*
Username: ${GUAC_USERNAME}
Result: success
*Test connection 2 (using attribute for computer name, same config in ldap-servers.yml) #1:*
Computer name: ${LDAP_OSURDPWS01}
_Result: RDP server closed/refused connection: Connection failed (server unreachable?)_
*Test connection 2 (using attribute for computer name, format from 1.5.5):*
Computer name: ${LDAP_OSURDPWS_01}
Result: RDP server closed/refused connection: Connection failed (server unreachable?)
** re-adding ldap-user-attributes: OSUrdpWS01, OSUrdpWS02, OSUrdpWS03, cn to guacamole.properties makes it all work in 1.5.5, but 1.6.6 nothing still works**
was (Author: JIRAUSER299297):
Hmm, am I missing something or is it something in docker?
In staging/1.6 - ldap-servers.yml:
{noformat}
user-attributes: OSUrdpWS01, OSUrdpWS02, OSUrdpWS03, cn{noformat}
*In test connection 1 Test #1:*
Username: ${LDAP_CN}
_Result: RDP server closed/refused connection: Authentication failure (invalid credentials?)_
*In test connection 1 test #2:*
Username: ${GUAC_USERNAME}
Result: success
*Test connection 2 (using attribute for computer name, same config in ldap-servers.yml) #1:*
Computer name: ${LDAP_OSURDPWS01}
_Result: RDP server closed/refused connection: Connection failed (server unreachable?)_
*Test connection 2 (using attribute for computer name, format from 1.5.5):*
Computer name: ${LDAP_OSURDPWS_01}
Result: RDP server closed/refused connection: Connection failed (server unreachable?)
> LDAP user attributes do not work when specified in ldap-servers.yml, at all with 1.6.0+
> ---------------------------------------------------------------------------------------
>
> Key: GUACAMOLE-2051
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-2051
> Project: Guacamole
> Issue Type: Bug
> Components: guacamole-auth-ldap
> Affects Versions: 1.5.5
> Environment: Docker
> Reporter: sbcbus
> Priority: Major
>
> 2 issues, but both related in the end. It made it a bit difficult to troubleshoot due to the variance.
> +In 1.5.5:+
> It seems "user-attributes:" does not work when specified in ldap-servers.yml. We recently had a change where we added an additional LDAP source so moved the entire config to there. Our connections that rely on custom attributes for the connection host name stopped working. *Uncommenting ldap-user-attributes: ... in guacamole.properties is a workaround.*
>
> +1.6.0:+
> The attributes do not seem to work *at all* in latest staging/1.6.0 branch. ldap-user-attributes: customAttributeName nor specifying it in ldap-users.yml as user-attributes: customAttributeName. Guacd logs shows the error as incorrect host name/dns error seemingly confirming it not being read. Reverting docker back to 1.5.5 results in case above.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)