{
    "mode": "man",
    "parameter": "PAM_XAUTH_DATA",
    "section": "3",
    "url": "https://www.chedong.com/phpMan.php/man/PAM_XAUTH_DATA/3/json",
    "generated": "2026-06-12T14:36:12Z",
    "synopsis": "#include <security/pamappl.h>\nstruct pamxauthdata {\nint namelen;\nchar *name;\nint datalen;\nchar *data;\n};",
    "sections": {
        "NAME": {
            "content": "pamxauthdata - structure containing X authentication data\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "#include <security/pamappl.h>\n\nstruct pamxauthdata {\nint namelen;\nchar *name;\nint datalen;\nchar *data;\n};\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The pamxauthdata structure contains X authentication data used to make a connection to an X\ndisplay. Using this mechanism, an application can communicate X authentication data to PAM\nservice modules. This allows modules to make a connection to the user's X display in order to\nlabel the user's session on login, display visual feedback or for other purposes.\n\nThe name field contains the name of the authentication method, such as \"MIT-MAGIC-COOKIE-1\".\nThe namelen field contains the length of this string, not including the trailing NUL\ncharacter.\n\nThe data field contains the authentication method-specific data corresponding to the\nspecified name. The datalen field contains its length in bytes.\n\nThe X authentication data can be changed with the PAMXAUTHDATA item. It can be queried and\nset with pamgetitem(3) and pamsetitem (3) respectively. The value used to set it should\nbe a pointer to a pamxauthdata structure. An internal copy of both the structure itself and\nits fields is made by PAM when setting the item.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pamstart(3), pamgetitem(3),\n",
            "subsections": []
        },
        "STANDARDS": {
            "content": "The pamxauthdata structure and PAMXAUTHDATA item are Linux-PAM extensions.\n\n\n\nLinux-PAM Manual                             06/08/2020                            PAMXAUTHDATA(3)",
            "subsections": []
        }
    },
    "summary": "pamxauthdata - structure containing X authentication data",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pamstart",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamstart/3/json"
        },
        {
            "name": "pamgetitem",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamgetitem/3/json"
        }
    ]
}