{
    "content": [
        {
            "type": "text",
            "text": "# RPC_CLNT_AUTH (info)\n\n## NAME\n\nauthdestroy, authnonecreate, authsyscreate, authsyscreatedefault -- library routines for client side remote procedure call authentication\n\n## SYNOPSIS\n\n#include <rpc/rpc.h>\nvoid\nauthdestroy(AUTH *auth);\nAUTH *\nauthnonecreate(void);\nAUTH *\nauthsyscreate(const char *host, const uidt uid, const gidt gid,\nconst int len, const gidt *aupgids);\nAUTH *\nauthsyscreatedefault(void);\n\n## DESCRIPTION\n\nThese routines are part of the RPC library that allows C language pro-\ngrams to make procedure calls on other machines across the network, with\ndesired authentication.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **Routines**\n- **AVAILABILITY**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "RPC_CLNT_AUTH",
        "section": "",
        "mode": "info",
        "summary": "authdestroy, authnonecreate, authsyscreate, authsyscreatedefault -- library routines for client side remote procedure call authentication",
        "synopsis": "#include <rpc/rpc.h>\nvoid\nauthdestroy(AUTH *auth);\nAUTH *\nauthnonecreate(void);\nAUTH *\nauthsyscreate(const char *host, const uidt uid, const gidt gid,\nconst int len, const gidt *aupgids);\nAUTH *\nauthsyscreatedefault(void);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "rpc",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/rpc/3/json"
            },
            {
                "name": "rpcclntcalls",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/rpcclntcalls/3/json"
            },
            {
                "name": "rpcclntcreate",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/rpcclntcreate/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "Routines",
                "lines": 23,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "authdestroy, authnonecreate, authsyscreate, authsyscreatedefault --\nlibrary routines for client side remote procedure call authentication\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "#include <rpc/rpc.h>\n\nvoid\nauthdestroy(AUTH *auth);\n\nAUTH *\nauthnonecreate(void);\n\nAUTH *\nauthsyscreate(const char *host, const uidt uid, const gidt gid,\nconst int len, const gidt *aupgids);\n\nAUTH *\nauthsyscreatedefault(void);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "These routines are part of the RPC library that allows C language pro-\ngrams to make procedure calls on other machines across the network, with\ndesired authentication.\n\nThese routines are normally called after creating the CLIENT handle.  The\nclauth field of the CLIENT structure should be initialized by the AUTH\nstructure returned by some of the following routines.  The client's au-\nthentication information is passed to the server when the RPC call is\nmade.\n\nOnly the NULL and the SYS style of authentication is discussed here.\n",
                "subsections": []
            },
            "Routines": {
                "content": "authdestroy()            A function macro that destroys the authentica-\ntion information associated with auth.  De-\nstruction usually involves deallocation of pri-\nvate data structures.  The use of auth is unde-\nfined after calling authdestroy().\n\nauthnonecreate()         Create and return an RPC authentication handle\nthat passes nonusable authentication informa-\ntion with each remote procedure call.  This is\nthe default authentication used by RPC.\n\nauthsyscreate()          Create and return an RPC authentication handle\nthat contains AUTHSYS authentication informa-\ntion.  The host argument is the name of the ma-\nchine on which the information was created; uid\nis the user's user ID; gid is the user's cur-\nrent group ID; len and aupgids refer to a\ncounted array of groups to which the user be-\nlongs.\n\nauthsyscreatedefault()  Call authsyscreate() with the appropriate ar-\nguments.\n",
                "subsections": []
            },
            "AVAILABILITY": {
                "content": "These functions are part of libtirpc.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "rpc(3), rpcclntcalls(3), rpcclntcreate(3)\n\nBSD                               May 7, 1993                              BSD",
                "subsections": []
            }
        }
    }
}