{
    "content": [
        {
            "type": "text",
            "text": "# pam_debug (man)\n\n## NAME\n\npamdebug - PAM module to debug the PAM stack\n\n## SYNOPSIS\n\npamdebug.so [auth=value] [cred=value] [acct=value] [prechauthtok=value] [chauthtok=value]\n[auth=value] [opensession=value] [closesession=value]\n\n## DESCRIPTION\n\nThe pamdebug PAM module is intended as a debugging aide for determining how the PAM stack is\noperating. This module returns what its module arguments tell it to return.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS**\n- **MODULE TYPES PROVIDED**\n- **RETURN VALUES**\n- **EXAMPLES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pam_debug",
        "section": "",
        "mode": "man",
        "summary": "pamdebug - PAM module to debug the PAM stack",
        "synopsis": "pamdebug.so [auth=value] [cred=value] [acct=value] [prechauthtok=value] [chauthtok=value]\n[auth=value] [opensession=value] [closesession=value]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "auth    requisite       pampermit.so",
            "auth    [success=2 default=ok]  pamdebug.so auth=permdenied cred=success",
            "auth    [default=reset]         pamdebug.so auth=success cred=permdenied",
            "auth    [success=done default=die] pamdebug.so",
            "auth    optional        pamdebug.so auth=permdenied cred=permdenied",
            "auth    sufficient      pamdebug.so auth=success cred=success"
        ],
        "see_also": [
            {
                "name": "pam.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pam.conf/5/json"
            },
            {
                "name": "pam.d",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pam.d/5/json"
            },
            {
                "name": "pam",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/pam/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 29,
                "subsections": []
            },
            {
                "name": "MODULE TYPES PROVIDED",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "RETURN VALUES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamdebug - PAM module to debug the PAM stack\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pamdebug.so [auth=value] [cred=value] [acct=value] [prechauthtok=value] [chauthtok=value]\n[auth=value] [opensession=value] [closesession=value]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The pamdebug PAM module is intended as a debugging aide for determining how the PAM stack is\noperating. This module returns what its module arguments tell it to return.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "auth=value\nThe pamsmauthenticate(3) function will return value.\n\ncred=value\nThe pamsmsetcred(3) function will return value.\n\nacct=value\nThe pamsmacctmgmt(3) function will return value.\n\nprechauthtok=value\nThe pamsmchauthtok(3) function will return value if the PAMPRELIMCHECK flag is set.\n\nchauthtok=value\nThe pamsmchauthtok(3) function will return value if the PAMPRELIMCHECK flag is not\nset.\n\nopensession=value\nThe pamsmopensession(3) function will return value.\n\nclosesession=value\nThe pamsmclosesession(3) function will return value.\n\nWhere value can be one of: success, openerr, symbolerr, serviceerr, systemerr, buferr,\npermdenied, autherr, credinsufficient, authinfounavail, userunknown, maxtries,\nnewauthtokreqd, acctexpired, sessionerr, credunavail, credexpired, crederr,\nnomoduledata, converr, authtokerr, authtokrecovererr, authtoklockbusy,\nauthtokdisableaging, tryagain, ignore, abort, authtokexpired, moduleunknown, baditem,\nconvagain, incomplete.\n",
                "subsections": []
            },
            "MODULE TYPES PROVIDED": {
                "content": "All module types (auth, account, password and session) are provided.\n",
                "subsections": []
            },
            "RETURN VALUES": {
                "content": "PAMSUCCESS\nDefault return code if no other value was specified, else specified return value.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "auth    requisite       pampermit.so\nauth    [success=2 default=ok]  pamdebug.so auth=permdenied cred=success\nauth    [default=reset]         pamdebug.so auth=success cred=permdenied\nauth    [success=done default=die] pamdebug.so\nauth    optional        pamdebug.so auth=permdenied cred=permdenied\nauth    sufficient      pamdebug.so auth=success cred=success\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pam.conf(5), pam.d(5), pam(7)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "pamdebug was written by Andrew G. Morgan <morgan@kernel.org>.\n\n\n\nLinux-PAM Manual                             06/08/2020                                 PAMDEBUG(8)",
                "subsections": []
            }
        }
    }
}