xpra icon
Bug tracker and wiki

Opened 6 months ago

Closed 6 months ago

Last modified 4 months ago

#1477 closed defect (fixed)

Xpra Proxy same user session management

Reported by: Andreas Owned by: Andreas
Priority: major Milestone: 2.1
Component: server Version: trunk
Keywords: Cc:

Description

Hi,

i want to test the nvenc proxy server functionality of xpra.

My proxy multi auth file looks like:

john|heimgeh|1000|1000|tcp:172.17.0.4:10000|EXAMPLE_ENV=VALUE|compression=0
john|heimgeh|1000|1000|tcp:172.17.0.5:10000|EXAMPLE_ENV=VALUE|compression=0
john|heimgeh|1000|1000|tcp:172.17.0.6:10000|EXAMPLE_ENV=VALUE|compression=0

how can i attach e.g. the session to the ip 172.17.0.5 from a client? Maybe its already possible in some way, but i dont know how to do?

Im searching for something like this:

john|heimgeh|1000|1000|tcp:172.17.0.4:10000|session-to-glxgears|EXAMPLE_ENV=VALUE|compression=0
john|heimgeh|1000|1000|tcp:172.17.0.5:10000|session-to-xterm|EXAMPLE_ENV=VALUE|compression=0
...

and on the client:

xpra attach --username=john --password-file=/home/testing/password.txt tcp:i31forhlr4:443/session-to-glxgears --encoding=h264
xpra attach --username=john --password-file=/home/testing/password.txt tcp:i31forhlr4:443/session-to-xterm --encoding=h264

Greets

Andreas

Change History (3)

comment:1 Changed 6 months ago by Antoine Martin

Milestone: 2.2
Owner: changed from Antoine Martin to Andreas

The "multifile" auth module can return multiple sessions to the proxy server using a CSV format, if you use a line similar to this one:

john|heimgeh|1000|1000|tcp:172.17.0.4:10000,tcp:172.17.0.5:10000|EXAMPLE_ENV=VALUE|compression=0

And the proxy server is able to take into account the "display" attribute of the connection string, so in theory the client could specify which actual session it wants to connect to. But I don't think we support long format display strings in the connection URI. (TBC)

Taking advantage of the two URL forms, you could try something like:

xpra attach tcp/john@i31forhlr4:443/tcp:172.17.0.5:10000

Run the proxy server with "-d auth" for more details.

If that doesn't work, maybe it can be fixed.
Otherwise, we would need to support some form of "load balancing".

comment:2 Changed 6 months ago by Andreas

Resolution: fixed
Status: newclosed

antoine gives some hints on how to solve it another way....

comment:3 Changed 4 months ago by Antoine Martin

Milestone: 2.22.1

(edit milestone)

Note: See TracTickets for help on using tickets.