Launching the session bus from a PAM module

Stef Bon stef at bononline.nl
Mon Jun 14 13:27:09 PDT 2010


  On 06/12/2010 10:00 PM, Michael Leupold wrote:
> Hi,
>
> I developed a PAM module that launches the session bus during session
> startup and kills it at the end of the session. This is useful for other
> modules which need to access to PAM data (eg. the authtok) as well as a D-
> Bus, one example of it being a module to automatically open a KWallet when
> logging into KDE.
> Is there anything that should advise against using such a module?
>
> The code is currently available at:
> http://code.confuego.org/index.php/p/pamdbuslaunch
>
> Regards,
> Michael
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
He,

well you do not have to develop the code yourself, it's already possible
with libpam-script (or libpam-script) or the module pam_exec.

It works. Earlier I've developed a construction using lippam-script, it 
was starting the
dbus session daemon, it stored the username and password in a temporary file
for authentification purposes, and did some mounting.

Technically it's very possible, but is not the sollution I think we 
should work on.

The focus should be on the right way to start a session and finishing it.

Recently there has been some discussion about new init systems, like 
upstart and system.d.

They are mainly aimed to manage the starting and stopping if system 
processes, and -
what suprises me a lot - not for sessions, while these are - forgive me 
my words -
a mess.

Stef


More information about the dbus mailing list