On 27 December 2012 10:04, David Edmundson <david at
davidedmundson.co.uk>wrote:
> Merry Christmas,
>
> I'm currently trying to add support for remote sessions in
> LightDM-KDE, and I'm a bit stuck.
>
> I call authenticateRemote(session, username) on a FreeRDP session and
> get back (in order) 4 prompts:
>
> "remote login:", "remote host:", "domain:",
"password:"
>
> 1) I don't understand why I pass a username to authenticateRemote only
> to then ask for a login. It appears to be used to name the local
> account to create to run the session. I've no idea what to pass here,
> is there a reason it does not just autogenerate a username like guest
> accounts do? Should I be allowing a user to specify the username?
>
The username should be the remote username (i.e. PAM_RUSER) but looking at
the code I'm not sure if it works (please file a bug if so). Just pass NULL
if you don't know the remote username. Guest sessions are run with
temporary accounts.
>
> 2) As far as I can tell (and I could be wrong) the Unity Greeter has
> hardcoded the entire form for remote logins. Is this the case? How
> safe is it for me to copy that?
> It seems bad from a UI perspective to prompt 1 thing at a time, but it
> also seems wrong code-wise to just guess what prompts we need whenever
> we log into a remote session, it's not very flexible.
>
Yes, there is some hard-coded elements in Unity Greeter, for reasons I
believe were due to releasing in time and not being able to easily get the
required information from PAM. I recommend not copying the Unity Greeter
code and doing everything from the PAM prompts and we can look at adding
more information if required.
--Robert
> Thanks in advance
>
> David Edmundson
> _______________________________________________
> LightDM mailing list
> LightDM at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/lightdm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.freedesktop.org/archives/lightdm/attachments/20121227/11849e1e/attachment.html>