1PAM_XAUTH_DATA(3) Linux-PAM Manual PAM_XAUTH_DATA(3)
2
3
4
6 pam_xauth_data - structure containing X authentication data
7
9 #include <security/pam_appl.h>
10
11 struct pam_xauth_data {
12 int namelen;
13 char *name;
14 int datalen;
15 char *data;
16 };
17
18
20 The pam_xauth_data structure contains X authentication data used to
21 make a connection to an X display. Using this mechanism, an application
22 can communicate X authentication data to PAM service modules. This
23 allows modules to make a connection to the user´s X display in order to
24 label the user´s session on login, display visual feedback or for other
25 purposes.
26
27 The name field contains the name of the authentication method, such as
28 "MIT-MAGIC-COOKIE-1". The namelen field contains the length of this
29 string, not including the trailing NUL character.
30
31 The data field contains the authentication method-specific data
32 corresponding to the specified name. The datalen field contains its
33 length in bytes.
34
35 The X authentication data can be changed with the PAM_XAUTH_DATA item.
36 It can be queried and set with pam_get_item(3) and pam_set_item (3)
37 respectively. The value used to set it should be a pointer to a
38 pam_xauth_data structure. An internal copy of both the structure itself
39 and its fields is made by PAM when setting the item.
40
42 pam_start(3), pam_get_item(3),
43
45 The pam_xauth_data structure and PAM_XAUTH_DATA item are Linux-PAM
46 extensions.
47
48
49
50Linux-PAM Manual 03/02/2009 PAM_XAUTH_DATA(3)