Scott Balneaves
2016-Mar-15 16:21 UTC
[LightDM] Proposal: two new functions in greeter interface for LightDM
I'd like to make a proposal for two new functions to be added to the greeter interface for LightDM: const gchar * lightdm_greeter_get_pam_env(greeter, gchar *env_name) and gboolean lightdm_greeter_set_pam_env(greeter, gchar *env_name, gchar *env_value) Here's the rationale for these functions; One of the things that's handy about pam is the ability to pass some information to later modules in the pam stack. One typically does this through pam environment variables. As a use case: Within the LTSP project, we'd like to use LightDM as the authentication mechanism. owever, LTSP allows us to run processes on multiple servers. A handy feature for the greeter would be to provide a drop-down of a list of servers, which the user could select at login time. This would then set a pam environment variable, which could be picked up by later modules in the pam stack to do the necessary plumbing. Does anyone see any potential problem with this idea? If not, I would be willing to undertake the work to implement these two functions. Cheers, Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/lightdm/attachments/20160315/c86cc4eb/attachment.html>
Robert Ancell
2016-Mar-15 20:57 UTC
[LightDM] Proposal: two new functions in greeter interface for LightDM
On Wed, 16 Mar 2016 at 05:21 Scott Balneaves <sbalneav at ltsp.org> wrote:> > Within the LTSP project, we'd like to use LightDM as the authentication > mechanism. owever, LTSP allows us to run processes on multiple servers. A > handy feature for the greeter would be to provide a drop-down of a list of > servers, which the user could select at login time. This would then set a > pam environment variable, which could be picked up by later modules in the > pam stack to do the necessary plumbing. > >Does the remote server feature work for this? Configuration is written into /usr/share/lightdm/remote-sessions/<name>.desktop (same as normal session files) but you can also set X-LightDM-PAM-Service to the PAM service that runs. The greeter can then get the list of these with lightdm_get_remote_sessions () and authenticates with them using lightdm_greeter_authenticate_remote (). -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/lightdm/attachments/20160315/8b9af49a/attachment.html>