<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 December 2012 10:04, David Edmundson <span dir="ltr"><<a href="mailto:david@davidedmundson.co.uk" target="_blank">david@davidedmundson.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Merry Christmas,<br>
<br>
I'm currently trying to add support for remote sessions in<br>
LightDM-KDE, and I'm a bit stuck.<br>
<br>
I call authenticateRemote(session, username) on a FreeRDP session and<br>
get back (in order) 4 prompts:<br>
<br>
"remote login:", "remote host:", "domain:", "password:"<br>
<br>
1) I don't understand why I pass a username to authenticateRemote only<br>
to then ask for a login. It appears to be used to name the local<br>
account to create to run the session. I've no idea what to pass here,<br>
is there a reason it does not just autogenerate a username like guest<br>
accounts do? Should I be allowing a user to specify the username?<br></blockquote><div><br></div><div>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.<br>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
2) As far as I can tell (and I could be wrong) the Unity Greeter has<br>
hardcoded the entire form for remote logins. Is this the case? How<br>
safe is it for me to copy that?<br>
It seems bad from a UI perspective to prompt 1 thing at a time, but it<br>
also seems wrong code-wise to just guess what prompts we need whenever<br>
we log into a remote session, it's not very flexible.<br></blockquote><div><br></div><div>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.<br>
<br></div><div>--Robert<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks in advance<br>
<span class="HOEnZb"><font color="#888888"><br>
David Edmundson<br>
_______________________________________________<br>
LightDM mailing list<br>
<a href="mailto:LightDM@lists.freedesktop.org">LightDM@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/lightdm" target="_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
</font></span></blockquote></div><br></div></div>