diff options
author | Colin Walters <walters@verbum.org> | 2012-04-29 09:04:02 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-04-30 18:34:45 -0400 |
commit | 961708968e0c1e59d25f196e10489ee914c3375b (patch) | |
tree | fb3a70afce64aaf5ad76b599c7861456584e8732 /daemon/gdm-session-worker.c | |
parent | 7764799e356fb482f732e3a248e22d69d5e4d86b (diff) | |
download | gdm-961708968e0c1e59d25f196e10489ee914c3375b.tar.gz |
daemon: Add some more PAM g_debug() prints
Hopefully helpful later for whoever has to debug PAM stuff.
https://bugzilla.gnome.org/show_bug.cgi?id=675086
Diffstat (limited to 'daemon/gdm-session-worker.c')
-rw-r--r-- | daemon/gdm-session-worker.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c index 8567e788..869075b8 100644 --- a/daemon/gdm-session-worker.c +++ b/daemon/gdm-session-worker.c @@ -1084,7 +1084,10 @@ gdm_session_worker_initialize_pam (GdmSessionWorker *worker, g_assert (worker->priv->pam_handle == NULL); - g_debug ("GdmSessionWorker: initializing PAM"); + g_debug ("GdmSessionWorker: initializing PAM; service=%s username=%s seat=%s", + service ? service : "(null)", + username ? username : "(null)", + seat_id ? seat_id : "(null)"); pam_conversation.conv = (GdmSessionWorkerPamNewMessagesFunc) gdm_session_worker_pam_new_messages_handler; pam_conversation.appdata_ptr = worker; @@ -1273,7 +1276,8 @@ gdm_session_worker_authorize_user (GdmSessionWorker *worker, int error_code; int authentication_flags; - g_debug ("GdmSessionWorker: determining if authenticated user is authorized to session"); + g_debug ("GdmSessionWorker: determining if authenticated user (password required:%d) is authorized to session", + password_is_required); authentication_flags = 0; @@ -1288,6 +1292,7 @@ gdm_session_worker_authorize_user (GdmSessionWorker *worker, /* it's possible that the user needs to change their password or pin code */ if (error_code == PAM_NEW_AUTHTOK_REQD && !worker->priv->is_program_session) { + g_debug ("GdmSessionWorker: authenticated user requires new auth token"); error_code = pam_chauthtok (worker->priv->pam_handle, PAM_CHANGE_EXPIRED_AUTHTOK); gdm_session_worker_get_username (worker, NULL); @@ -1664,7 +1669,7 @@ session_worker_child_watch (GPid pid, static void gdm_session_worker_watch_child (GdmSessionWorker *worker) { - + g_debug ("GdmSession worker: watching pid %d", worker->priv->child_pid); worker->priv->child_watch_id = g_child_watch_add (worker->priv->child_pid, (GChildWatchFunc)session_worker_child_watch, worker); |