Comment 9 for bug 863630

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Yeah, adding this light-autologin pam service file lets lightdm work back here too… I gave a quick look at the code to try to find the cause of this failure, and here's what I got:

LightDM 0.9.7, in src/display.c, display_init() sets:
  display->priv->pam_service = g_strdup ("lightdm");
and the greeter session started in start_greeter_session() uses the following call:
  authentication = pam_session_new (display->priv->pam_service, user_get_name (user), display->priv->xdisplay);

This was changed in the commit linked above by Yves-Alexis, to:
  authentication = pam_session_new (display->priv->pam_autologin_service, user_get_name (user));
with the autologin service being set in display_init() to:
  display->priv->pam_autologin_service = g_strdup ("lightdm-autologin");

pam_session_new calls pam_start(), with the first argument being the service (here, with "lightdm-autologin" it expects /etc/pam.d/lightdm-autologin which doesn't exist)…

I agree with comment #5, it would be great to have the necessary files needed to make lightdm work included by default (or at least sample files), instead of having to look at the ubuntu packaging for that…