1RPC_CLNT_AUTH(3)         BSD Library Functions Manual         RPC_CLNT_AUTH(3)
2

NAME

4     auth_destroy, authnone_create, authsys_create, authsys_create_default 
5     library routines for client side remote procedure call authentication
6

LIBRARY

8     Standard C Library (libc, -lc)
9

SYNOPSIS

11     #include <rpc/rpc.h>
12
13     void
14     auth_destroy(AUTH *auth);
15
16     AUTH *
17     authnone_create(void);
18
19     AUTH *
20     authsys_create(const char *host, const uid_t uid, const gid_t gid,
21         const int len, const gid_t *aup_gids);
22
23     AUTH *
24     authsys_create_default(void);
25

DESCRIPTION

27     These routines are part of the RPC library that allows C language pro‐
28     grams to make procedure calls on other machines across the network, with
29     desired authentication.
30
31     These routines are normally called after creating the CLIENT handle.  The
32     cl_auth field of the CLIENT structure should be initialized by the AUTH
33     structure returned by some of the following routines.  The client's
34     authentication information is passed to the server when the RPC call is
35     made.
36
37     Only the NULL and the SYS style of authentication is discussed here.
38

Routines

40     auth_destroy()            A function macro that destroys the authentica‐
41                               tion information associated with auth.
42                               Destruction usually involves deallocation of
43                               private data structures.  The use of auth is
44                               undefined after calling auth_destroy().
45
46     authnone_create()         Create and return an RPC authentication handle
47                               that passes nonusable authentication informa‐
48                               tion with each remote procedure call.  This is
49                               the default authentication used by RPC.
50
51     authsys_create()          Create and return an RPC authentication handle
52                               that contains AUTH_SYS authentication informa‐
53                               tion.  The host argument is the name of the
54                               machine on which the information was created;
55                               uid is the user's user ID; gid is the user's
56                               current group ID; len and aup_gids refer to a
57                               counted array of groups to which the user
58                               belongs.
59
60     authsys_create_default()  Call authsys_create() with the appropriate
61                               arguments.
62

SEE ALSO

64     rpc(3), rpc_clnt_calls(3), rpc_clnt_create(3)
65
66BSD                               May 7, 1993                              BSD
Impressum