PAM config files (/etc/pam.d/*) are distribtion specific and Gentoo should create its own instead of using upstream files. See this bug for lxdm PAM files: https://bugs.gentoo.org/show_bug.cgi?id=524792
Gaaah, that should be lxdm
Created attachment 394180 [details] lxdm ebuild Here is a working lxdm ebuild. You will need Xsession from bug https://bugs.gentoo.org/show_bug.cgi?id=532032 BTW, this is moving along too slow
(In reply to Joakim Tjernlund from comment #2) > Created attachment 394180 [details] > lxdm ebuild > > Here is a working lxdm ebuild. > > You will need Xsession from bug > https://bugs.gentoo.org/show_bug.cgi?id=532032 > > BTW, this is moving along too slow These changes break consolekit support on lxdm. I don't see problems with the upstream supplied file once pam_console is removed.
(In reply to Brian Evans from comment #3) > (In reply to Joakim Tjernlund from comment #2) > > Created attachment 394180 [details] > > lxdm ebuild > > > > Here is a working lxdm ebuild. > > > > You will need Xsession from bug > > https://bugs.gentoo.org/show_bug.cgi?id=532032 > > > > BTW, this is moving along too slow > > These changes break consolekit support on lxdm. oh, how? Maybe it can be can be fixed using the pam eclass ? > > I don't see problems with the upstream supplied file once pam_console is > removed. It is just plain luck, the PAM conf is dist. specific.
(In reply to Joakim Tjernlund from comment #4) > (In reply to Brian Evans from comment #3) > > (In reply to Joakim Tjernlund from comment #2) > > > Created attachment 394180 [details] > > > lxdm ebuild > > > > > > Here is a working lxdm ebuild. > > > > > > You will need Xsession from bug > > > https://bugs.gentoo.org/show_bug.cgi?id=532032 > > > > > > BTW, this is moving along too slow > > > > These changes break consolekit support on lxdm. > > oh, how? > Maybe it can be can be fixed using the pam eclass ? When I signed into XFCE from lxdm, none of the consolekit features like Reboot, Shutdown or Suspend were available. Reverting the change had it working again. I'm not sure of the exact cause at this time.
(In reply to Brian Evans from comment #5) > (In reply to Joakim Tjernlund from comment #4) > > (In reply to Brian Evans from comment #3) > > > (In reply to Joakim Tjernlund from comment #2) > > > > Created attachment 394180 [details] > > > > lxdm ebuild > > > > > > > > Here is a working lxdm ebuild. > > > > > > > > You will need Xsession from bug > > > > https://bugs.gentoo.org/show_bug.cgi?id=532032 > > > > > > > > BTW, this is moving along too slow > > > > > > These changes break consolekit support on lxdm. > > > > oh, how? > > Maybe it can be can be fixed using the pam eclass ? > > When I signed into XFCE from lxdm, none of the consolekit features like > Reboot, Shutdown or Suspend were available. > > Reverting the change had it working again. > > I'm not sure of the exact cause at this time. Would you mind bisecting the exact change causing this?
(In reply to Joakim Tjernlund from comment #6) > (In reply to Brian Evans from comment #5) > > (In reply to Joakim Tjernlund from comment #4) > > > (In reply to Brian Evans from comment #3) > > > > (In reply to Joakim Tjernlund from comment #2) > > > > > Created attachment 394180 [details] > > > > > lxdm ebuild > > > > > > > > > > Here is a working lxdm ebuild. > > > > > > > > > > You will need Xsession from bug > > > > > https://bugs.gentoo.org/show_bug.cgi?id=532032 > > > > > > > > > > BTW, this is moving along too slow > > > > > > > > These changes break consolekit support on lxdm. > > > > > > oh, how? > > > Maybe it can be can be fixed using the pam eclass ? > > > > When I signed into XFCE from lxdm, none of the consolekit features like > > Reboot, Shutdown or Suspend were available. > > > > Reverting the change had it working again. > > > > I'm not sure of the exact cause at this time. > > Would you mind bisecting the exact change causing this? Bisect? I don't understand what you wish to do. I added: # Remove existing pam file. We will build a new one. Bug #533338 rm -rf "${ED}"/etc/pam.d/${PN} pamd_mimic system-local-login ${PN} auth account password session #37222 locally and it broke, so i removed it before publishing.
(In reply to Brian Evans from comment #7) > (In reply to Joakim Tjernlund from comment #6) > > (In reply to Brian Evans from comment #5) > > > (In reply to Joakim Tjernlund from comment #4) > > > > (In reply to Brian Evans from comment #3) > > > > > (In reply to Joakim Tjernlund from comment #2) > > > > > > Created attachment 394180 [details] > > > > > > lxdm ebuild > > > > > > > > > > > > Here is a working lxdm ebuild. > > > > > > > > > > > > You will need Xsession from bug > > > > > > https://bugs.gentoo.org/show_bug.cgi?id=532032 > > > > > > > > > > > > BTW, this is moving along too slow > > > > > > > > > > These changes break consolekit support on lxdm. > > > > > > > > oh, how? > > > > Maybe it can be can be fixed using the pam eclass ? > > > > > > When I signed into XFCE from lxdm, none of the consolekit features like > > > Reboot, Shutdown or Suspend were available. > > > > > > Reverting the change had it working again. > > > > > > I'm not sure of the exact cause at this time. > > > > Would you mind bisecting the exact change causing this? > > Bisect? I don't understand what you wish to do. > > I added: > # Remove existing pam file. We will build a new one. Bug #533338 > rm -rf "${ED}"/etc/pam.d/${PN} > pamd_mimic system-local-login ${PN} auth account password session #37222 > > locally and it broke, so i removed it before publishing. I meant trying to find out what wrong by slowly moving your /etc/pam.d/lxdm from #%PAM-1.0 auth substack system-auth auth optional pam_gnome_keyring.so account include system-auth session optional pam_keyinit.so force revoke session include system-auth #session optional pam_console.so session optional pam_gnome_keyring.so auto_start session optional pam_selinux.so to # File autogenerated by pamd_mimic in pam eclass auth include system-local-login account include system-local-login password include system-local-login session include system-local-login I would guess something in the session part, maybe pam_keyinit.so?
(In reply to Joakim Tjernlund from comment #8) > I meant trying to find out what wrong by slowly moving your /etc/pam.d/lxdm > from > #%PAM-1.0 > auth substack system-auth > auth optional pam_gnome_keyring.so > account include system-auth > session optional pam_keyinit.so force revoke > session include system-auth > #session optional pam_console.so > session optional pam_gnome_keyring.so auto_start > session optional pam_selinux.so > > to > > # File autogenerated by pamd_mimic in pam eclass > auth include system-local-login > account include system-local-login > password include system-local-login > session include system-local-login > > I would guess something in the session part, maybe pam_keyinit.so? The problem occurs when I change the session option to system-local-login. I'm not sure if this line from /etc/pam.d/system-login is related session optional pam_ck_connector.so nox11
(In reply to Brian Evans from comment #9) > (In reply to Joakim Tjernlund from comment #8) > > I meant trying to find out what wrong by slowly moving your /etc/pam.d/lxdm > > from > > #%PAM-1.0 > > auth substack system-auth > > auth optional pam_gnome_keyring.so > > account include system-auth > > session optional pam_keyinit.so force revoke > > session include system-auth > > #session optional pam_console.so > > session optional pam_gnome_keyring.so auto_start > > session optional pam_selinux.so > > > > to > > > > # File autogenerated by pamd_mimic in pam eclass > > auth include system-local-login > > account include system-local-login > > password include system-local-login > > session include system-local-login > > > > I would guess something in the session part, maybe pam_keyinit.so? > > The problem occurs when I change the session option to system-local-login. > > I'm not sure if this line from /etc/pam.d/system-login is related > session optional pam_ck_connector.so nox11 Ahh, now I see it too. Googling says that one should not use pam_ck_connector.so with lxdm. I don't that the pam eclass supports partial pam config file generation. I guess we can do ATM is: auth include system-local-login account include system-local-login password include system-local-login auth include system-local-login session optional pam_keyinit.so force revoke session include system-auth session optional pam_gnome_keyring.so auto_start session optional pam_selinux.so
Possibly one could disable consolekit in LXDM and use pam_ck_connector.so in PAM conf. I have not tested that though.