-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
there is no way to query the ip of the connected client #2415
Comments
sorry, that issue should be in neutrinolabs/xrdp |
Hi @yxzzx You're quite right - this information isn't currently available. We've made recent changes which will aid this (#2251) These changes pass the connecting IP address from xrdp to xrdp-sesman. From there it would be simple enough to set up an xrdb resource string as you suggest. Nice idea, by the way! It neatly sidesteps the problems with trying to do this via the environment. A couple of provisos:-
I've got a PR in the pipeline which will make a login to I can see your use-case clearly (I think), but I'd appreciate your comments on the above. |
We need to modify /etc/xrdp/reconectwm.sh anyway, but I think it would be useful for others to have something like if [ -x $HOME/.reconnectrdp ]; then in it by default. |
In our environment we to know the ip address of the client doing the initial session setup.
Up to now we did use xtermals and deduced e.g. the name of the closest printer from the terminal name. After switching to xrdp and running xfreerdp on the clients (directly from rc.local) we no longer have access to this information and are forced to hard code such information in the users .profile.
It would be cool, if /etc/reconnectwm.sh would have access to the IP-address of the reconnecting client as well. In that case we could even update this information in a file in the user's homedirectory.
A very nice way would be something like
xrdb -get xrdp.clientipv4
xrdb -get xrdp.clientipv6
But I suspect Xorg.bin doesn't really know the ip of the connecting client or the xrdpdev_drv has no way to set a resource inside the server.
The text was updated successfully, but these errors were encountered: