1RPC_CLNT_AUTH(3) BSD Library Functions Manual RPC_CLNT_AUTH(3)
2
4 auth_destroy, authnone_create, authsys_create, authsys_create_default —
5 library routines for client side remote procedure call authentication
6
8 #include <rpc/rpc.h>
9
10 void
11 auth_destroy(AUTH *auth);
12
13 AUTH *
14 authnone_create(void);
15
16 AUTH *
17 authsys_create(const char *host, const uid_t uid, const gid_t gid,
18 const int len, const gid_t *aup_gids);
19
20 AUTH *
21 authsys_create_default(void);
22
24 These routines are part of the RPC library that allows C language pro‐
25 grams to make procedure calls on other machines across the network, with
26 desired authentication.
27
28 These routines are normally called after creating the CLIENT handle. The
29 cl_auth field of the CLIENT structure should be initialized by the AUTH
30 structure returned by some of the following routines. The client's
31 authentication information is passed to the server when the RPC call is
32 made.
33
34 Only the NULL and the SYS style of authentication is discussed here.
35
37 auth_destroy() A function macro that destroys the authentica‐
38 tion information associated with auth.
39 Destruction usually involves deallocation of
40 private data structures. The use of auth is
41 undefined after calling auth_destroy().
42
43 authnone_create() Create and return an RPC authentication handle
44 that passes nonusable authentication informa‐
45 tion with each remote procedure call. This is
46 the default authentication used by RPC.
47
48 authsys_create() Create and return an RPC authentication handle
49 that contains AUTH_SYS authentication informa‐
50 tion. The host argument is the name of the
51 machine on which the information was created;
52 uid is the user's user ID; gid is the user's
53 current group ID; len and aup_gids refer to a
54 counted array of groups to which the user
55 belongs.
56
57 authsys_create_default() Call authsys_create() with the appropriate
58 arguments.
59
61 These functions are part of libtirpc.
62
64 rpc(3), rpc_clnt_calls(3), rpc_clnt_create(3)
65
66BSD May 7, 1993 BSD