{
    "content": [
        {
            "type": "text",
            "text": "# rpc_clnt_auth (man)\n\n## NAME\n\nauthdestroy, authnonecreate, authsyscreate, authsyscreatedefault — library routines for client side remote procedure call authentication\n\n## DESCRIPTION\n\nThese routines are part of the RPC library that allows C language programs to make procedure\ncalls on other machines across the network, with desired authentication.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (1 subsections)\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": "man",
        "summary": "authdestroy, authnonecreate, authsyscreate, authsyscreatedefault — library routines for client side remote procedure call authentication",
        "synopsis": "",
        "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": 1,
                "subsections": [
                    {
                        "name": "#include <rpc/rpc.h>",
                        "lines": 13
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "Routines",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "authdestroy, authnonecreate, authsyscreate, authsyscreatedefault — library routines for\nclient side remote procedure call authentication\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "",
                "subsections": [
                    {
                        "name": "#include <rpc/rpc.h>",
                        "content": "void\nauthdestroy(AUTH *auth);\n\nAUTH *\nauthnonecreate(void);\n\nAUTH *\nauthsyscreate(const char *host, const uidt uid, const gidt gid, const int len,\nconst gidt *aupgids);\n\nAUTH *\nauthsyscreatedefault(void);\n"
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "These routines are part of the RPC library that allows C language programs to make procedure\ncalls on other machines across the network, with desired authentication.\n\nThese routines are normally called after creating the CLIENT handle.  The clauth field of the\nCLIENT structure should be initialized by the AUTH structure returned by some of the following\nroutines.  The client's authentication 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 authentication information associ‐\nated with auth.  Destruction usually involves deallocation of private\ndata structures.  The use of auth is undefined after calling\nauthdestroy().\n\nauthnonecreate()         Create and return an RPC authentication handle that passes nonusable\nauthentication information with each remote procedure call.  This is\nthe default authentication used by RPC.\n\nauthsyscreate()          Create and return an RPC authentication handle that contains AUTHSYS\nauthentication information.  The host argument is the name of the ma‐\nchine on which the information was created; uid is the user's user\nID; gid is the user's current group ID; len and aupgids refer to a\ncounted array of groups to which the user belongs.\n\nauthsyscreatedefault()  Call authsyscreate() with the appropriate arguments.\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": []
            }
        }
    }
}