diff options
author | David Zeuthen <davidz@redhat.com> | 2007-02-28 13:52:17 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2007-02-28 13:52:17 -0500 |
commit | fed7e94f76c4279015354ff210bc72f1ac68af70 (patch) | |
tree | 9ffb075579693cf2a2000fd8a0dcb3ad1c6ac367 /pam-ck-connector/pam_ck_connector.8 | |
parent | 8b33f57e8cd5f451d55fbb0f9bcc3c119a076326 (diff) |
add a connector library and (reluctantly) a PAM module
Here are some patches to add one library and one PAM module so other
programs (apart from gdm) can easily interact with ConsoleKit. It's
mainly going to be used, I think, by login(1) and xinit(1). I'm not
super happy about doing a PAM module but the Fedora util-linux package
maintainer seems to be insist on this instead of just patching login(1).
The PAM module isn't built by default. Both pieces of code are licensed
under the MIT license as god knows what might want to use them. Sounds
good to you?
Diffstat (limited to 'pam-ck-connector/pam_ck_connector.8')
-rw-r--r-- | pam-ck-connector/pam_ck_connector.8 | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/pam-ck-connector/pam_ck_connector.8 b/pam-ck-connector/pam_ck_connector.8 new file mode 100644 index 0000000..43241a0 --- /dev/null +++ b/pam-ck-connector/pam_ck_connector.8 @@ -0,0 +1,80 @@ +.\" Title: pam_ck_connector +.\" Author: David Zeuthen <davidz@redhat.com> +.\" Date: 02/27/2007 +.\" +.TH "PAM_CK_CONNECTOR" "8" "02/27/2007" "ConsoleKit Manual" "ConsoleKit Manual" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +pam_ck_connector \- Register sessin with ConsoleKit +.SH "SYNOPSIS" +.HP 12 +\fBpam_ck_connector.so\fR [debug] +.SH "DESCRIPTION" +.PP +The pam_ck_connector PAM module registers a login session with +the system-wide +.I ConsoleKit +daemon. This PAM module should be used with +caution; only local login managers such as +.B login(1) +should use this. Since the +.I ConsoleKit +daemon can accept both an +.B tty +and an X11 display the normal parameters set by PAM are not always +useful. + +An application can therefore override these with the PAM environment +variables +.B CKCON_TTY +and +.B CHCON_X11_DISPLAY +(the application should remember to unset these before starting the +login session). + +Also note that the +.I ConsoleKit +daemon may reject registration attempts if the given set of data are +inconsistent with each other. More more information, see the +.I ConsoleKit +documentation on the +.B OpenSessionWithParameters() +method call on the +.B org.freedesktop.ConsoleKit.Manager +D-Bus interface. + +If registration with the +.I ConsoleKit +daemon succeeds, this PAM module will set the environment variable +.B XDG_SESSION_COOKIE +which is used to defined membership of a login session. + +This PAM module has the side effect that it creates a connection to +the system message bus that is kept open until the session ends. This +is used by the +.I ConsoleKit +daemon to track the life-cycle of the +session and, as such, should the login manager crash, the session will +be properly unregistered. + +.SH "OPTIONS" +.PP +.TP 3n +\fBdebug\fR +Print debug information. +.fi +.RE +.sp +.SH "SEE ALSO" +.PP + +\fBpam.conf\fR(5), +\fBpam.d\fR(8), +\fBpam\fR(8), +\fBdbus-daemon\fR(1) +.SH "AUTHOR" +.PP +pam_ck_connector was written by David Zeuthen <davidz@redhat.com>. |