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.1 2000/06/03 09:29:50 fvdl Exp $
6 .\" $FreeBSD: src/lib/libc/rpc/rpc_clnt_auth.3,v 1.6 2005/02/09 18:03:14 ru Exp $
14 .Nm authsys_create_default
15 .Nd library routines for client side remote procedure call authentication
21 .Fn auth_destroy "AUTH *auth"
23 .Fn authnone_create "void"
25 .Fn authsys_create "const char *host" "const uid_t uid" "const gid_t gid" "const int len" "const gid_t *aup_gids"
27 .Fn authsys_create_default "void"
29 These routines are part of the
30 RPC library that allows C language programs to make procedure
31 calls on other machines across the network,
32 with desired authentication.
34 These routines are normally called after creating the
41 structure should be initialized by the
43 structure returned by some of the following routines.
44 The client's authentication information
45 is passed to the server when the
53 style of authentication is discussed here.
55 .Bl -tag -width authsys_create_default()
57 A function macro that destroys the authentication
58 information associated with
60 Destruction usually involves deallocation
61 of private data structures.
64 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.
72 Create and return an RPC authentication handle that contains
74 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.
88 .It Fn authsys_create_default
91 with the appropriate arguments.
95 .Xr rpc_clnt_calls 3 ,