1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
5 <refentry id="pam_xauth_data">
8 <refentrytitle>pam_xauth_data</refentrytitle>
9 <manvolnum>3</manvolnum>
10 <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo>
13 <refnamediv id="pam_xauth_data-name">
14 <refname>pam_xauth_data</refname>
15 <refpurpose>structure containing X authentication data</refpurpose>
18 <!-- body begins here -->
21 <funcsynopsis id="pam_xauth_data-synopsis">
22 <funcsynopsisinfo>#include <security/pam_appl.h></funcsynopsisinfo>
25 struct pam_xauth_data {
34 <refsect1 id='pam_xauth_data-description'>
35 <title>DESCRIPTION</title>
37 The <function>pam_xauth_data</function> structure contains X
38 authentication data used to make a connection to an X display.
39 Using this mechanism, an application can communicate X
40 authentication data to PAM service modules. This allows modules to
41 make a connection to the user's X display in order to label the
42 user's session on login, display visual feedback or for other
46 The <emphasis>name</emphasis> field contains the name of the
47 authentication method, such as "MIT-MAGIC-COOKIE-1". The
48 <emphasis>namelen</emphasis> field contains the length of this string,
49 not including the trailing NUL character.
52 The <emphasis>data</emphasis> field contains the authentication
53 method-specific data corresponding to the specified name. The
54 <emphasis>datalen</emphasis> field contains its length in bytes.
57 The X authentication data can be changed with the
58 <emphasis>PAM_XAUTH_DATA</emphasis> item. It can be queried and
61 <refentrytitle>pam_get_item</refentrytitle><manvolnum>3</manvolnum>
65 <refentrytitle>pam_set_item </refentrytitle><manvolnum>3</manvolnum>
66 </citerefentry> respectively. The value used to set it should be
67 a pointer to a pam_xauth_data structure. An internal copy of both
68 the structure itself and its fields is made by PAM when setting the
73 <refsect1 id='pam_xauth_data-see_also'>
74 <title>SEE ALSO</title>
77 <refentrytitle>pam_start</refentrytitle><manvolnum>3</manvolnum>
80 <refentrytitle>pam_get_item</refentrytitle><manvolnum>3</manvolnum>
85 <refsect1 id='pam_xauth_data-standards'>
86 <title>STANDARDS</title>
88 The <function>pam_xauth_data</function> structure and
89 <emphasis>PAM_XAUTH_DATA</emphasis> item are