# phpman > man > PAM_XAUTH_DATA(3)

[PAM_XAUTH_DATA(3)](https://www.chedong.com/phpMan.php/man/PAMXAUTHDATA/3/markdown)                         Linux-PAM Manual                         [PAM_XAUTH_DATA(3)](https://www.chedong.com/phpMan.php/man/PAMXAUTHDATA/3/markdown)



## NAME
       pam_xauth_data - structure containing X authentication data

## SYNOPSIS
       **#include** **<security/pam**___**appl.h>**

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


## DESCRIPTION
       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)](https://www.chedong.com/phpMan.php/man/item/3/markdown) 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
       **pam**___**[start**(3)](https://www.chedong.com/phpMan.php/man/start/3/markdown), **pam**___**get**___**[item**(3)](https://www.chedong.com/phpMan.php/man/item/3/markdown),

## STANDARDS
       The **pam**___**xauth**___**data** structure and _PAM_XAUTH_DATA_ item are Linux-PAM extensions.



Linux-PAM Manual                             06/08/2020                            [PAM_XAUTH_DATA(3)](https://www.chedong.com/phpMan.php/man/PAMXAUTHDATA/3/markdown)
