You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Aero Tech <ae...@gmail.com> on 2023/12/04 21:43:39 UTC

Guacamole Connection Setup

Team,

 I am a bit stuck on creating connections for LDAPS users. With user xml I
can set up a user with connections. I don't seem to be able to give that
admin rights to make additional configs. I've added in a MYSQL DB but
adding a LDAPS user to the MYSQL DB with admin rights also doesn't  seem to
give the config access I would like to have to set up connections for
users. I'd like to avoid extending the LDAPS schema and make the
connections from the MYSQL DB. I also would like to avoid adding a
guacadmin LDAP account if possible. From what I have seen and read user
mapping is completely separate from LDAPS auth accounts. I've tried adding
guacadmin as an admin user in the MYSQL DB but still not seeing the ability
to manage connections for all users. Right now I only need one connection
for all users who access the web console. Later maybe I would like to add
additional. I read somewhere that I may be able to create default
connections with the guacamole REST API? What is the best way or, what are
some ways to resolve this issue?

Best Regards,

Blake

Re: Guacamole Connection Setup

Posted by Sean Hulbert <sh...@securitycentric.net.INVALID>.
xRDP if the user account is associated with root group it will not 
login, it needs to be a non root user, also  xRDP likes to bind to IPv6.

Hope this helps.

*Thank You*
Sean Hulbert



*Security Centric Inc.*
A Cybersecurity Virtualization Enablement Company
/StormCloud Gov, Protected CUI Environment!/


Industry's most secure virtual desktops!


*/FedRAMP MIL4 in process (SAR)/*
System Award Management
*CAGE: 8AUV4*
*SAM ID: UMJLJ8A7BMT3*

AFCEA San Francisco Chapter President
If you have heard of a hacker by name, he/she has failed, fear the 
hacker you haven’t heard of!

CONFIDENTIALITY NOTICE: This communication with its contents may contain 
confidential and/or legally privileged information. It is solely for the 
use of the intended recipient(s). Unauthorized interception, review, use 
or disclosure is prohibited and may violate applicable laws including 
the Electronic Communications Privacy Act. If you are not the intended 
recipient, please contact the sender and destroy all copies of the 
communication. Content within this email communication is not legally 
binding as a contract and no promises are guaranteed unless in a formal 
contract outside this email communication.

igitur qui desiderat pacem, praeparet bellum!!!

Epitoma Rei Militaris

On 12/6/2023 2:31 PM, Aero Tech wrote:
> While I am working through the MYSQL issues I am using quick connect 
> extension. Accounts setup with 2fa using PAM are having issues with 
> xrdp login. Accounts without the PAM 2fa are not. Anyway to pass the 
> cred from the webconsole auth that anyone knows of?
>
> On Tue, Dec 5, 2023 at 10:58 AM Nick Couchman <vn...@apache.org> wrote:
>
>     On Tue, Dec 5, 2023 at 10:45 AM Aero Tech <ae...@gmail.com>
>     wrote:
>
>         Adding the LDAPS user to user xml works for getting
>         connections for the LDAPS user but I have to have the LDAPS
>         user password. Is there some way to specify user mapping to
>         accept the account LDAPS password?
>
>
>     The user-mapping.xml authentication mechanism does not "stack"
>     with the other authentication mechanisms that way, so, no, there
>     is no way to do that.
>
>     If you want to use Guacamole with LDAP, and want connections to be
>     stored somewhere outside of LDAP, the easiest way is to use the
>     database module to store connections and then user LDAP users and
>     groups. You mentioned this in your original e-mail, that you were
>     using MySQL, and this should work fine. There are a few things to
>     keep in mind:
>     * If you want to map LDAP users and/or groups to the database
>     module, the user and group names have to match *exactly* -
>     including case-sensitivity.
>     * In order to get LDAP groups pulled in, you'll need to make sure
>     you're specifying the group base/search OU in the
>     guacamole.properties file, otherwise groups will not be queried.
>     * You can have users auto-created in the JDBC module (MySQL) upon
>     successful login - there's an option for it in the
>     guacamole.properties file.
>
>     Overall, make sure you read the following manual pages thoroughly:
>     https://guacamole.apache.org/doc/gug/jdbc-auth.html
>     https://guacamole.apache.org/doc/gug/ldap-auth.html
>
>     Feel free to post back with any specific questions or issues.
>
>     -Nick
>

Re: Guacamole Connection Setup

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Dec 6, 2023 at 5:33 PM Aero Tech <ae...@gmail.com> wrote:

> While I am working through the MYSQL issues I am using quick connect
> extension. Accounts setup with 2fa using PAM are having issues with xrdp
> login. Accounts without the PAM 2fa are not. Anyway to pass the cred from
> the webconsole auth that anyone knows of?
>

If you mean: Can you use the LDAP username and password to load connections
without having to specify the password in the user-mapping.xml file, no,
you cannot do this, nor can you associate the user-mapping.xml file with
any other login extension.

If you mean, can you pass the username and password (LDAP username and
password, for example) used to log in to Guacamole on to connections to
user for the username and password for a connection, yes, this is possible
- please see the Parameter Tokens section of the manual:

https://guacamole.apache.org/doc/gug/configuring-guacamole.html#parameter-tokens

-Nick

>

Re: Guacamole Connection Setup

Posted by Aero Tech <ae...@gmail.com>.
While I am working through the MYSQL issues I am using quick connect
extension. Accounts setup with 2fa using PAM are having issues with xrdp
login. Accounts without the PAM 2fa are not. Anyway to pass the cred from
the webconsole auth that anyone knows of?

On Tue, Dec 5, 2023 at 10:58 AM Nick Couchman <vn...@apache.org> wrote:

> On Tue, Dec 5, 2023 at 10:45 AM Aero Tech <ae...@gmail.com> wrote:
>
>> Adding the LDAPS user to user xml works for getting connections for the
>> LDAPS user but I have to have the LDAPS user password. Is there some way to
>> specify user mapping to accept the account LDAPS password?
>>
>
> The user-mapping.xml authentication mechanism does not "stack" with the
> other authentication mechanisms that way, so, no, there is no way to do
> that.
>
> If you want to use Guacamole with LDAP, and want connections to be stored
> somewhere outside of LDAP, the easiest way is to use the database module to
> store connections and then user LDAP users and groups. You mentioned this
> in your original e-mail, that you were using MySQL, and this should work
> fine. There are a few things to keep in mind:
> * If you want to map LDAP users and/or groups to the database module, the
> user and group names have to match *exactly* - including case-sensitivity.
> * In order to get LDAP groups pulled in, you'll need to make sure you're
> specifying the group base/search OU in the guacamole.properties file,
> otherwise groups will not be queried.
> * You can have users auto-created in the JDBC module (MySQL) upon
> successful login - there's an option for it in the guacamole.properties
> file.
>
> Overall, make sure you read the following manual pages thoroughly:
> https://guacamole.apache.org/doc/gug/jdbc-auth.html
> https://guacamole.apache.org/doc/gug/ldap-auth.html
>
> Feel free to post back with any specific questions or issues.
>
> -Nick
>
>>

Re: Guacamole Connection Setup

Posted by Nick Couchman <vn...@apache.org>.
On Tue, Dec 5, 2023 at 10:45 AM Aero Tech <ae...@gmail.com> wrote:

> Adding the LDAPS user to user xml works for getting connections for the
> LDAPS user but I have to have the LDAPS user password. Is there some way to
> specify user mapping to accept the account LDAPS password?
>

The user-mapping.xml authentication mechanism does not "stack" with the
other authentication mechanisms that way, so, no, there is no way to do
that.

If you want to use Guacamole with LDAP, and want connections to be stored
somewhere outside of LDAP, the easiest way is to use the database module to
store connections and then user LDAP users and groups. You mentioned this
in your original e-mail, that you were using MySQL, and this should work
fine. There are a few things to keep in mind:
* If you want to map LDAP users and/or groups to the database module, the
user and group names have to match *exactly* - including case-sensitivity.
* In order to get LDAP groups pulled in, you'll need to make sure you're
specifying the group base/search OU in the guacamole.properties file,
otherwise groups will not be queried.
* You can have users auto-created in the JDBC module (MySQL) upon
successful login - there's an option for it in the guacamole.properties
file.

Overall, make sure you read the following manual pages thoroughly:
https://guacamole.apache.org/doc/gug/jdbc-auth.html
https://guacamole.apache.org/doc/gug/ldap-auth.html

Feel free to post back with any specific questions or issues.

-Nick

>

Re: Guacamole Connection Setup

Posted by Richard Hawkins <ri...@medctrbarbour.org>.
Why are you using a file for access.  Why don’t you connect it to your Active Directory?  Then when you need to add a user you just do a search under users.   I ended up removing all mine.  I went with database and multifactor.  Insurance demanded it.

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Aero Tech <ae...@gmail.com>
Sent: Tuesday, December 5, 2023 9:45:32 AM
To: user@guacamole.apache.org <us...@guacamole.apache.org>
Subject: Re: Guacamole Connection Setup

Adding the LDAPS user to user xml works for getting connections for the LDAPS user but I have to have the LDAPS user password. Is there some way to specify user mapping to accept the account LDAPS password?

On Mon, Dec 4, 2023 at 4:43 PM Aero Tech <ae...@gmail.com>> wrote:
Team,

 I am a bit stuck on creating connections for LDAPS users. With user xml I can set up a user with connections. I don't seem to be able to give that admin rights to make additional configs. I've added in a MYSQL DB but adding a LDAPS user to the MYSQL DB with admin rights also doesn't  seem to give the config access I would like to have to set up connections for users. I'd like to avoid extending the LDAPS schema and make the connections from the MYSQL DB. I also would like to avoid adding a guacadmin LDAP account if possible. From what I have seen and read user mapping is completely separate from LDAPS auth accounts. I've tried adding guacadmin as an admin user in the MYSQL DB but still not seeing the ability to manage connections for all users. Right now I only need one connection for all users who access the web console. Later maybe I would like to add additional. I read somewhere that I may be able to create default connections with the guacamole REST API? What is the best way or, what are some ways to resolve this issue?

Best Regards,

Blake

Re: Guacamole Connection Setup

Posted by Aero Tech <ae...@gmail.com>.
Adding the LDAPS user to user xml works for getting connections for the
LDAPS user but I have to have the LDAPS user password. Is there some way to
specify user mapping to accept the account LDAPS password?

On Mon, Dec 4, 2023 at 4:43 PM Aero Tech <ae...@gmail.com> wrote:

> Team,
>
>  I am a bit stuck on creating connections for LDAPS users. With user xml I
> can set up a user with connections. I don't seem to be able to give that
> admin rights to make additional configs. I've added in a MYSQL DB but
> adding a LDAPS user to the MYSQL DB with admin rights also doesn't  seem to
> give the config access I would like to have to set up connections for
> users. I'd like to avoid extending the LDAPS schema and make the
> connections from the MYSQL DB. I also would like to avoid adding a
> guacadmin LDAP account if possible. From what I have seen and read user
> mapping is completely separate from LDAPS auth accounts. I've tried adding
> guacadmin as an admin user in the MYSQL DB but still not seeing the ability
> to manage connections for all users. Right now I only need one connection
> for all users who access the web console. Later maybe I would like to add
> additional. I read somewhere that I may be able to create default
> connections with the guacamole REST API? What is the best way or, what are
> some ways to resolve this issue?
>
> Best Regards,
>
> Blake
>