neutrinolabs / xrdp

xrdp: an open source RDP server
http://www.xrdp.org/
Apache License 2.0
5.8k stars 1.73k forks source link

transfer dm functions to local dm, e.g. lightdm? for simplification/unification #486

Open cypa opened 8 years ago

cypa commented 8 years ago

cause configuring another wm environment is a mess, at least on Ubuntu 16.04 ... it is not main profile task for xrdp after all

cypa commented 8 years ago
proski commented 8 years ago

X11 desktop managers cannot use RDP protocol. They would need to be run in one of the XRDP supported backends. That's another thing that can go wrong and another option to configure.

Once xorgxrdp works really well and most distros ship it, it could be made the default, simplifying the configuration for the beginners.

cypa commented 8 years ago

I don't get you, dear @proski ... but since RDP is similar to VNC in architecture and lightdm supports VNC I guess xorgxrdp could be used with lightdm as well, or not?

proski commented 8 years ago

I mean that you cannot use LightDM as is. It needs to connect to an X server. For xrdp to use LightDM, it would need to run an X server. xrdp supports 3 backends - Xvnc, X11rdp and xorgxrdp. So xrdp would need to decide which backend to use before it even shows anything to the user. There is no guarantee of either backend being available. So it would need to be configured. And if the configuration is wrong, the user would see nothing, unless xrdp retains some GUI support to show the error message.

I see that LightDM can work as a VNC server. They can add RDP support, but you should be asking the LightDM developers, as most of the work would be on their side. LightDM would accept the connection, authenticate the user, allow some selections (backend, language etc) and then it would run xrdp in a special mode with an existing TCP connection.

xrdp would need to support the connection passed by another process (that would allow xrdp to support xinetd as well), and it would need an option to require autologin. If everything works smoothly, the xrdp GUI code could be eliminated eventually.

proski commented 8 years ago

Actually, I just realized that LightDM would need to implement the security negotiation. Either LightDM would need to give all the details (not just the socket) to xrdp for smooth transition, or it should incorporate xrdp. That's a massive effort, and I don't expect it to happen any time soon.

cypa commented 8 years ago

well, I agree ... but that efforts worth it, I think

Natureshadow commented 7 years ago

This would ultimately mean that lightdm would have to implement session management as well, including reconnects.

That would be cool because it would allow sharing local and remote sessions, but it is also really complex.