You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Nic Fargo <ni...@fes.org> on 2024/07/17 17:18:05 UTC
ldap-servers.yml not working
I'm trying to use the multiple LDAP servers settings discussed in the Apache Guacamole Manual v1.5.5. I'm not sure if there's a flag that needs to be in /etc/guacamole/guacamole.properties to use the ldap-servers.yml file, or if it uses it automatically when present. My ldap-servers.yml has the following data:
* hostname: DC1.domain1.com
port:389
encryption-method: none
user-base-dn: OU=[Users],DC=domain1,DC=com
username-attribute: sAMAccountName
match-usernames:
* domain1\\(.*)
* (.*)@domain1\.com
search-bind-dn: CN=guac-ldap,OU="[Managed Service Accounts]",DC=domain1,DC=com
search-bind-password: secret
* hostname: dc1.domain2.com
port: 389
encryption-method: none
user-base-dn: OU="Domain Controllers",DC=domain2,DC=com
username-attribute: sAMAccountName
match-usernames:
* domain2\\(.*)
* (.*)@domain2\.com
search-bind-dn: CN=guac-ldap,OU=="[Managed Service Accounts]",DC=domain1,DC=com
search-bind-password: secret
These work fine when listed one at a time in guacamole.properties, but I just can't get it to want to read from ldap-servers.yml. Any help would be appreciated.
RE: ldap-servers.yml not working
Posted by Nic Fargo <ni...@fes.org>.
Lucian,
The only thing in my guacamole.properties file is:
guacd-hostname: 127.0.0.1
guacd-port: 4822
# MySQL properties
mysql-hostname: 127.0.0.1
mysql-database: guacamole_db
mysql-username: redacted
mysql-password: redacted
#LDAPS properties
#commented out properties for testing
The only difference I see between our ldap-servers.yml files are you're using a search filter and I'm not. Unless there's some weird formatting with yml files that I'm just missing...
From: Luciano Oliveira <ol...@outlook.com>
Sent: Thursday, July 18, 2024 8:12 AM
To: user@guacamole.apache.org
Subject: RE: ldap-servers.yml not working
EXTERNAL EMAIL: Do not click any links or open any attachments unless you trust the sender and know the content is safe.
Look, my ldap-servers.yml
- hostname: ldap.domain.local
port: 636
encryption-method: ssl
user-base-dn: dc=domain,dc=local
match-usernames:
- LOCAL\\(.*)
- (.*)@domain\.local
username-attribute: sAMAccountName
search-bind-dn: cn=srv_gcd,ou=ServicesAuth,dc=domain,dc=local
search-bind-password: passwordXsds224e
user-search-filter: (&(&(objectClass=user)(objectCategory=person))(memberof=cn=acess_guacd,ou=Groups,dc=domain,dc=local))
- hostname: ldap.sub.domain.local
port: 636
encryption-method: ssl
user-base-dn: dc=sub,dc=domain,dc=local
match-usernames:
- SUB\\(.*)
- (.*)@sub\.domain\.local
username-attribute: sAMAccountName
search-bind-dn: cn=srv_sub_gcd,ou=ServicesAuth,dc=sub,dc=domain,dc=local
search-bind-password: passwordXX5485
user-search-filter: (&(&(objectClass=user)(objectCategory=person))(memberof=cn=accesso_guaca_sub,ou=Groups,dc=sub,dc=domain,dc=local))
Remember that the guacamole.properties file should only contain the configuration:
"auth-provider: net.sourceforge.guacamole.net.auth.ldap.LDAPAuthenticationProvider" and others.
The LDAP parameters should only be in the ldap-servers.yml file.
At.te,
Luciano!
________________________________
De: Michael Jumper <mj...@apache.org>>
Enviado: quarta-feira, 17 de julho de 2024 15:23
Para: user@guacamole.apache.org<ma...@guacamole.apache.org> <us...@guacamole.apache.org>>
Assunto: Re: ldap-servers.yml not working
On 7/17/24 10:18 AM, Nic Fargo wrote:
> I'm trying to use the multiple LDAP servers settings discussed in the
> Apache Guacamole Manual v1.5.5. I'm not sure if there's a flag that
> needs to be in /etc/guacamole/guacamole.properties to use the
> ldap-servers.yml file, or if it uses it automatically when present.
It's automatically read and used when present and readable.
> My ldap-servers.yml has the following data: ...
What are the permissions on this file?
What do you see in your Guacamole logs?
- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org<ma...@guacamole.apache.org>
For additional commands, e-mail: user-help@guacamole.apache.org<ma...@guacamole.apache.org>
Re: ldap-servers.yml not working
Posted by Nick Couchman <vn...@apache.org>.
>
>
> Remember that the guacamole.properties file should only contain the
> configuration:
> "auth-provider:
> net.sourceforge.guacamole.net.auth.ldap.LDAPAuthenticationProvider" and
> others.
>
>
This property has no effect - it has not been used in Guacamole in many
years.
-NIck
RE: ldap-servers.yml not working
Posted by Luciano Oliveira <ol...@outlook.com>.
Look, my ldap-servers.yml
- hostname: ldap.domain.local
port: 636
encryption-method: ssl
user-base-dn: dc=domain,dc=local
match-usernames:
- LOCAL\\(.*)
- (.*)@domain\.local
username-attribute: sAMAccountName
search-bind-dn: cn=srv_gcd,ou=ServicesAuth,dc=domain,dc=local
search-bind-password: passwordXsds224e
user-search-filter: (&(&(objectClass=user)(objectCategory=person))(memberof=cn=acess_guacd,ou=Groups,dc=domain,dc=local))
- hostname: ldap.sub.domain.local
port: 636
encryption-method: ssl
user-base-dn: dc=sub,dc=domain,dc=local
match-usernames:
- SUB\\(.*)
- (.*)@sub\.domain\.local
username-attribute: sAMAccountName
search-bind-dn: cn=srv_sub_gcd,ou=ServicesAuth,dc=sub,dc=domain,dc=local
search-bind-password: passwordXX5485
user-search-filter: (&(&(objectClass=user)(objectCategory=person))(memberof=cn=accesso_guaca_sub,ou=Groups,dc=sub,dc=domain,dc=local))
Remember that the guacamole.properties file should only contain the configuration:
"auth-provider: net.sourceforge.guacamole.net.auth.ldap.LDAPAuthenticationProvider" and others.
The LDAP parameters should only be in the ldap-servers.yml file.
At.te,
Luciano!
________________________________
De: Michael Jumper <mj...@apache.org>
Enviado: quarta-feira, 17 de julho de 2024 15:23
Para: user@guacamole.apache.org <us...@guacamole.apache.org>
Assunto: Re: ldap-servers.yml not working
On 7/17/24 10:18 AM, Nic Fargo wrote:
> I’m trying to use the multiple LDAP servers settings discussed in the
> Apache Guacamole Manual v1.5.5. I’m not sure if there’s a flag that
> needs to be in /etc/guacamole/guacamole.properties to use the
> ldap-servers.yml file, or if it uses it automatically when present.
It's automatically read and used when present and readable.
> My ldap-servers.yml has the following data: ...
What are the permissions on this file?
What do you see in your Guacamole logs?
- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org
Re: ldap-servers.yml not working
Posted by Michael Jumper <mj...@apache.org>.
On 7/17/24 10:18 AM, Nic Fargo wrote:
> I’m trying to use the multiple LDAP servers settings discussed in the
> Apache Guacamole Manual v1.5.5. I’m not sure if there’s a flag that
> needs to be in /etc/guacamole/guacamole.properties to use the
> ldap-servers.yml file, or if it uses it automatically when present.
It's automatically read and used when present and readable.
> My ldap-servers.yml has the following data: ...
What are the permissions on this file?
What do you see in your Guacamole logs?
- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org