pam_xauth_data(3) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | STANDARDS | COLOPHON

PAM_XAUTH_DATA(3)           Linux-PAM Manual           PAM_XAUTH_DATA(3)

NAME         top

       pam_xauth_data - structure containing X authentication data

SYNOPSIS         top

       #include <security/pam_appl.h>

       struct pam_xauth_data {
           int namelen;
           char *name;
           int datalen;
           char *data;
       };

DESCRIPTION         top

       The pam_xauth_data structure contains X authentication data used
       to make a connection to an X display. Using this mechanism, an
       application can communicate X authentication data to PAM service
       modules. This allows modules to make a connection to the user's X
       display in order to label the user's session on login, display
       visual feedback or for other purposes.

       The name field contains the name of the authentication method,
       such as "MIT-MAGIC-COOKIE-1". The namelen field contains the
       length of this string, not including the trailing NUL character.

       The data field contains the authentication method-specific data
       corresponding to the specified name. The datalen field contains
       its length in bytes.

       The X authentication data can be changed with the PAM_XAUTH_DATA
       item. It can be queried and set with pam_get_item(3) and
       pam_set_item (3) respectively. The value used to set it should be
       a pointer to a pam_xauth_data structure. An internal copy of both
       the structure itself and its fields is made by PAM when setting
       the item.

SEE ALSO         top

       pam_start(3), pam_get_item(3),

STANDARDS         top

       The pam_xauth_data structure and PAM_XAUTH_DATA item are
       Linux-PAM extensions.

COLOPHON         top

       This page is part of the linux-pam (Pluggable Authentication
       Modules for Linux) project.  Information about the project can be
       found at ⟨http://www.linux-pam.org/⟩.  If you have a bug report
       for this manual page, see ⟨//www.linux-pam.org/⟩.  This page was
       obtained from the project's upstream Git repository
       ⟨https://github.com/linux-pam/linux-pam.git⟩ on 2023-12-22.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2023-12-18.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       [email protected]

Linux-PAM Manual               12/22/2023              PAM_XAUTH_DATA(3)

Pages that refer to this page: pam_get_item(3)pam_set_item(3)