On 01/08/2019 11:49, Yang Yang wrote:
Hello,
I noticed that the URI for a connection keeps the same when I access it
at different times, such as http://GUACAMOLE-ADDRESS:PORTS/#/client/
<http://guacamole-address:ports/#/client/>*MwBjAHBvc3RncmVzcWw=*; however,
I cannot find the string in the database (I’m using PostgreSQL). Can I
use the URI to access a resource directly? How can I get the unique
string for a connection?
https://github.com/apache/guacamole-client/blob/d1e928bea79ca81c827e9b6adedabc98eefdf701/guacamole/src/main/webapp/app/navigation/types/ClientIdentifier.js#L110
Looks like you join together the connection id (i.e. connection_id from
the guacamole_connection table), the connection type and the datasource
with nulls and then base64 encode the resulting string. type is either
the single character c for a simple connection or g for a connection
group, and the datasource is postgresql in this case.
base64 decoding your connection string gives
3\0c\0postgresql
i.e. it's the connection string for connection_id=3.
Adam
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]