PAM_XAUTHDATA and PAM_XDISPLAY not defined

Bug #999709 reported by reed
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Light Display Manager
Fix Released
Medium
Unassigned

Bug Description

I don't see PAM_XAUTHDATA and PAM_XDISPLAY available on NetBSD or with openpam.

As a workaround I am using:

--- src/session-child.c.orig 2012-05-14 19:03:56.000000000 -0500
+++ src/session-child.c 2012-05-14 19:05:18.000000000 -0500
@@ -255,11 +255,14 @@
     }
     if (xdisplay)
     {
+#ifdef PAM_XDISPLAY
         pam_set_item (pam_handle, PAM_XDISPLAY, xdisplay);
+#endif
         pam_set_item (pam_handle, PAM_TTY, xdisplay);
     }
     else if (tty)
         pam_set_item (pam_handle, PAM_TTY, tty);
+#ifdef PAM_XAUTHDATA
     if (xauthority)
     {
         struct pam_xauth_data value;
@@ -270,6 +273,7 @@
         value.datalen = xauth_get_authorization_data_length (xauthority);
         pam_set_item (pam_handle, PAM_XAUTHDATA, &value);
     }
+#endif

     /* Authenticate */
     if (do_authenticate)

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Workaround seems valid (these are Linux PAM extensions). Fixed for 1.3.1

Changed in lightdm:
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Fixed in 1.3.1

Changed in lightdm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.