1 .\" @(#)rpc_clnt_auth.3n 1.21 93/05/07 SMI; from SVr4
2 .\" Copyright 1989 AT&T
3 .\" @(#)rpc_clnt_auth 1.4 89/07/20 SMI;
4 .\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
5 .\" $NetBSD: rpc_clnt_auth.3,v 1.6 2003/04/16 13:34:43 wiz Exp $
13 .Nm authsys_create_default
14 .Nd library routines for client side remote procedure call authentication
20 .Fn auth_destroy "AUTH *auth"
22 .Fn authnone_create "void"
24 .Fn authsys_create "const char *host" "const uid_t uid" "const gid_t gid" "const int len" "const gid_t *aup_gids"
26 .Fn authsys_create_default "void"
28 These routines are part of the
29 RPC library that allows C language programs to make procedure
30 calls on other machines across the network,
31 with desired authentication.
33 These routines are normally called after creating the
40 structure should be initialized by the
42 structure returned by some of the following routines.
43 The client's authentication information
44 is passed to the server when the
52 style of authentication is discussed here.
54 .Bl -tag -width authsys_create_default()
56 A function macro that destroys the authentication
57 information associated with
59 Destruction usually involves deallocation
60 of private data structures.
63 is undefined after calling
66 .It Fn authnone_create
67 Create and return an RPC
68 authentication handle that passes nonusable
69 authentication information with each remote procedure call.
70 This is the default authentication used by RPC.
73 Create and return an RPC authentication handle that contains
75 authentication information.
78 is the name of the machine on which the information was
81 is the user's user ID;
83 is the user's current group ID;
87 refer to a counted array of groups to which the user belongs.
89 .It Fn authsys_create_default
92 with the appropriate parameters.
96 .Xr rpc_clnt_calls 3 ,