You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Michael Hess <mi...@nols.edu.INVALID> on 2023/03/24 22:01:55 UTC
Recordings issue on 1.5.0 and SAML Question
First, can I pass a saml attribute like we can with ldap_{attribute} in some way? I need to pass the Azure onpremisessamaccountname attribute as the username, so LDAP groups work with SAML accounts vs having the full email as the username. I do see it in the SAML token coming back when authenticating.
Second, I don't know what I messed up, running in docker, but now the guacamole container won't start, I just get this over and over. I've disabled the extension for recordings, as well as removed the containers and image and rebuilt:
cp: cannot access '/etc/guacamole/./recordings': Permission denied
guacamole exited with code 1
Thank you!
Re: Recordings issue on 1.5.0 and SAML Question
Posted by Nick Couchman <vn...@apache.org>.
On Mon, Mar 27, 2023 at 4:13 PM Michael Hess
<mi...@nols.edu.invalid> wrote:
>
> After changing the group uid for my recordings host folder to that of the guacd user, 1001, I can restart the containers without the error, however I can't get the log's to play back in the History. I'm not sure if it's because the guacd is 1001 and the guacamole user is 1000?
>
Yes, playback would be done completely by the guacamole-client
container, so the user running that container will need access to the
location that contains the recordings. You don't necessarily have to
change ownership, you can grant permissions via ACLs, add the user to
the existing group, etc.
-Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org
Re: Recordings issue on 1.5.0 and SAML Question
Posted by Michael Hess <mi...@nols.edu.INVALID>.
After changing the group uid for my recordings host folder to that of the guacd user, 1001, I can restart the containers without the error, however I can't get the log's to play back in the History. I'm not sure if it's because the guacd is 1001 and the guacamole user is 1000?
What's the best way to do this within Docker?
________________________________
From: Michael Hess <mi...@nols.edu>
Sent: Friday, March 24, 2023 4:43 PM
To: user@guacamole.apache.org <us...@guacamole.apache.org>
Subject: Re: Recordings issue on 1.5.0 and SAML Question
Hi Mike,
I have this format in azure: first_last@domain
My LDAP and all internal server usernames are just first_last.
SAML login works, but creates the user with the full username. I have to add the attribute in Azure to expose the on prem samaccount attribute.
I changed the Azure UUI to the on prem variable and I think that worked. For some reason (though I have my groups by OID, the user isn't getting the connections assigned to the groups.
As far as LDAP, since these "layer" I was actually trying to make the username from Azure match what's in LDAP so the group membership would work correctly (as it does with ldap only).
The SAML group list IS going through to Guacamole, it's just not seeming to want to map it to the users.
I do have a volume mount on my host as such under guacd:
volumes:
- '${BASEDIR}/guac/drive:/var/lib/guacamole/drive:rw'
- '${BASEDIR}/guac/recordings:/var/lib/guacamole/recordings:rw'
The extension should be seeing it correctly, but I get an error that it can't:
guacd[8]: ERROR: Creation of recording failed: Permission denied
guacd[8]: ERROR: Creation of typescript failed: Permission denied
the Recording path of the connection is: ${HISTORY_PATH}/${HISTORY_UUID}
Filename is: ${GUAC_DATE}__${GUAC_TIME}__TypeScript__AdmissionsForms
At some point I did have it working, but it wouldn't play back in the logs, so I'm sure it's a permission issue, but don't know how to fix being that the guacd account isn't on my host, just the container.
I've clean installed, and still get this error and the group issue.
________________________________
From: Michael Jumper <mj...@apache.org>
Sent: Friday, March 24, 2023 4:22 PM
To: user@guacamole.apache.org <us...@guacamole.apache.org>
Subject: Re: Recordings issue on 1.5.0 and SAML Question
On Fri, Mar 24, 2023 at 3:02 PM Michael Hess <mi...@nols.edu.invalid> wrote:
First, can I pass a saml attribute like we can with ldap_{attribute} in some way? I need to pass the Azure onpremisessamaccountname attribute as the username, so LDAP groups work with SAML accounts vs having the full email as the username. I do see it in the SAML token coming back when authenticating.
You should be able to configure Azure to provide the username in a different format. In SAML, the username is referred to as the "NameID", and might be in Azure's configuration as such.
Can you clarify how the availability of a SAML attribute ties together with LDAP group membership in your case?
When using SAML, group membership would be asserted by the SAML IdP. This is dictated by an attribute that includes a list of the group names that apply to a user, not by the user's username. It is true that a user's username will be matched up with corresponding user accounts and groups within Guacamole's database, but this has no impact on Guacamole's integration with LDAP which would affect only users that log in directly with Guacamole using LDAP credentials.
Second, I don't know what I messed up, running in docker, but now the guacamole container won't start, I just get this over and over. I've disabled the extension for recordings, as well as removed the containers and image and rebuilt:
cp: cannot access '/etc/guacamole/./recordings': Permission denied
guacamole exited with code 1
Do you have a volume mount pointing at that path?
- Mike
Re: Recordings issue on 1.5.0 and SAML Question
Posted by Michael Hess <mi...@nols.edu.INVALID>.
Hi Mike,
I have this format in azure: first_last@domain
My LDAP and all internal server usernames are just first_last.
SAML login works, but creates the user with the full username. I have to add the attribute in Azure to expose the on prem samaccount attribute.
I changed the Azure UUI to the on prem variable and I think that worked. For some reason (though I have my groups by OID, the user isn't getting the connections assigned to the groups.
As far as LDAP, since these "layer" I was actually trying to make the username from Azure match what's in LDAP so the group membership would work correctly (as it does with ldap only).
The SAML group list IS going through to Guacamole, it's just not seeming to want to map it to the users.
I do have a volume mount on my host as such under guacd:
volumes:
- '${BASEDIR}/guac/drive:/var/lib/guacamole/drive:rw'
- '${BASEDIR}/guac/recordings:/var/lib/guacamole/recordings:rw'
The extension should be seeing it correctly, but I get an error that it can't:
guacd[8]: ERROR: Creation of recording failed: Permission denied
guacd[8]: ERROR: Creation of typescript failed: Permission denied
the Recording path of the connection is: ${HISTORY_PATH}/${HISTORY_UUID}
Filename is: ${GUAC_DATE}__${GUAC_TIME}__TypeScript__AdmissionsForms
At some point I did have it working, but it wouldn't play back in the logs, so I'm sure it's a permission issue, but don't know how to fix being that the guacd account isn't on my host, just the container.
I've clean installed, and still get this error and the group issue.
________________________________
From: Michael Jumper <mj...@apache.org>
Sent: Friday, March 24, 2023 4:22 PM
To: user@guacamole.apache.org <us...@guacamole.apache.org>
Subject: Re: Recordings issue on 1.5.0 and SAML Question
On Fri, Mar 24, 2023 at 3:02 PM Michael Hess <mi...@nols.edu.invalid> wrote:
First, can I pass a saml attribute like we can with ldap_{attribute} in some way? I need to pass the Azure onpremisessamaccountname attribute as the username, so LDAP groups work with SAML accounts vs having the full email as the username. I do see it in the SAML token coming back when authenticating.
You should be able to configure Azure to provide the username in a different format. In SAML, the username is referred to as the "NameID", and might be in Azure's configuration as such.
Can you clarify how the availability of a SAML attribute ties together with LDAP group membership in your case?
When using SAML, group membership would be asserted by the SAML IdP. This is dictated by an attribute that includes a list of the group names that apply to a user, not by the user's username. It is true that a user's username will be matched up with corresponding user accounts and groups within Guacamole's database, but this has no impact on Guacamole's integration with LDAP which would affect only users that log in directly with Guacamole using LDAP credentials.
Second, I don't know what I messed up, running in docker, but now the guacamole container won't start, I just get this over and over. I've disabled the extension for recordings, as well as removed the containers and image and rebuilt:
cp: cannot access '/etc/guacamole/./recordings': Permission denied
guacamole exited with code 1
Do you have a volume mount pointing at that path?
- Mike
Re: Recordings issue on 1.5.0 and SAML Question
Posted by Michael Jumper <mj...@apache.org>.
On Fri, Mar 24, 2023 at 3:02 PM Michael Hess <mi...@nols.edu.invalid>
wrote:
> First, can I pass a saml attribute like we can with ldap_{attribute} in
> some way? I need to pass the Azure onpremisessamaccountname attribute as
> the username, so LDAP groups work with SAML accounts vs having the full
> email as the username. I do see it in the SAML token coming back when
> authenticating.
>
You should be able to configure Azure to provide the username in a
different format. In SAML, the username is referred to as the "NameID", and
might be in Azure's configuration as such.
Can you clarify how the availability of a SAML attribute ties together with
LDAP group membership in your case?
When using SAML, group membership would be asserted by the SAML IdP. This
is dictated by an attribute that includes a list of the group names that
apply to a user, not by the user's username. It is true that a user's
username will be matched up with corresponding user accounts and groups
within Guacamole's database, but this has no impact on Guacamole's
integration with LDAP which would affect only users that log in directly
with Guacamole using LDAP credentials.
Second, I don't know what I messed up, running in docker, but now the
> guacamole container won't start, I just get this over and over. I've
> disabled the extension for recordings, as well as removed the containers
> and image and rebuilt:
>
> cp: cannot access '/etc/guacamole/./recordings': Permission denied
> guacamole exited with code 1
>
Do you have a volume mount pointing at that path?
- Mike