Bug 5799 - Web Access doesn't update client_ip properly
Summary: Web Access doesn't update client_ip properly
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Access (show other bugs)
Version: pre-1.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Samuel Mannehed
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-09 16:21 CET by Pierre Ossman
Modified: 2021-10-05 12:56 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2016-02-09 16:21:52 CET
The session param "client_ip" will be empty when using the HTML client:

> bash-4.3$ tl-session-param /client_ip
> 

We can probably fix this, but it's not trivial. The way it works is that the master digs around in /proc/<pid>/environ for the process that does the XML-RPC calls, looking for SSH_CONNECTION. We can easily set that environment variable, but /proc isn't updated until we do exec(), which we never do.

So we need to do either:

 a) Change the mechanism in the master somewhat to accommodate the HTML client

or

 b) Inject an exec somewhere in the HTML client, e.g. by doing the XML-RPC communication via thinlinc-login instead of directly.

Note You need to log in before you can comment on or make changes to this bug.