18360efbdSAlfred Perlstein.\" @(#)rpc_clnt_auth.3n 1.21 93/05/07 SMI; from SVr4 28360efbdSAlfred Perlstein.\" Copyright 1989 AT&T 38360efbdSAlfred Perlstein.\" @(#)rpc_clnt_auth 1.4 89/07/20 SMI; 48360efbdSAlfred Perlstein.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved. 58360efbdSAlfred Perlstein.\" $NetBSD: rpc_clnt_auth.3,v 1.1 2000/06/03 09:29:50 fvdl Exp $ 68360efbdSAlfred Perlstein.\" $FreeBSD$ 78360efbdSAlfred Perlstein.Dd May 7, 1993 88360efbdSAlfred Perlstein.Dt RPC_CLNT_AUTH 3 98360efbdSAlfred Perlstein.Os 108360efbdSAlfred Perlstein.Sh NAME 118360efbdSAlfred Perlstein.Nm auth_destroy , 128360efbdSAlfred Perlstein.Nm authnone_create , 138360efbdSAlfred Perlstein.Nm authsys_create , 148360efbdSAlfred Perlstein.Nm authsys_create_default 158360efbdSAlfred Perlstein.Nd library routines for client side remote procedure call authentication 168360efbdSAlfred Perlstein.Sh LIBRARY 178360efbdSAlfred Perlstein.Lb libc 188360efbdSAlfred Perlstein.Sh SYNOPSIS 1932eef9aeSRuslan Ermilov.In rpc/rpc.h 208360efbdSAlfred Perlstein.Ft "void" 218360efbdSAlfred Perlstein.Fn auth_destroy "AUTH *auth" 228360efbdSAlfred Perlstein.Ft "AUTH *" 238360efbdSAlfred Perlstein.Fn authnone_create "void" 248360efbdSAlfred Perlstein.Ft "AUTH *" 258360efbdSAlfred Perlstein.Fn authsys_create "const char *host" "const uid_t uid" "const gid_t gid" "const int len" "const gid_t *aup_gids" 268360efbdSAlfred Perlstein.Ft "AUTH *" 278360efbdSAlfred Perlstein.Fn authsys_create_default "void" 288360efbdSAlfred Perlstein.Sh DESCRIPTION 298360efbdSAlfred PerlsteinThese routines are part of the 308360efbdSAlfred PerlsteinRPC library that allows C language programs to make procedure 318360efbdSAlfred Perlsteincalls on other machines across the network, 328360efbdSAlfred Perlsteinwith desired authentication. 338360efbdSAlfred Perlstein.Pp 348360efbdSAlfred PerlsteinThese routines are normally called after creating the 358360efbdSAlfred Perlstein.Vt CLIENT 368360efbdSAlfred Perlsteinhandle. 378360efbdSAlfred PerlsteinThe 388360efbdSAlfred Perlstein.Va cl_auth 398360efbdSAlfred Perlsteinfield of the 408360efbdSAlfred Perlstein.Vt CLIENT 418360efbdSAlfred Perlsteinstructure should be initialized by the 428360efbdSAlfred Perlstein.Vt AUTH 438360efbdSAlfred Perlsteinstructure returned by some of the following routines. 448360efbdSAlfred PerlsteinThe client's authentication information 458360efbdSAlfred Perlsteinis passed to the server when the 468360efbdSAlfred PerlsteinRPC 478360efbdSAlfred Perlsteincall is made. 488360efbdSAlfred Perlstein.Pp 498360efbdSAlfred PerlsteinOnly the 508360efbdSAlfred Perlstein.Dv NULL 518360efbdSAlfred Perlsteinand the 528360efbdSAlfred Perlstein.Dv SYS 538360efbdSAlfred Perlsteinstyle of authentication is discussed here. 548360efbdSAlfred Perlstein.Sh Routines 558360efbdSAlfred Perlstein.Bl -tag -width authsys_create_default() 568360efbdSAlfred Perlstein.It Fn auth_destroy 578360efbdSAlfred PerlsteinA function macro that destroys the authentication 588360efbdSAlfred Perlsteininformation associated with 598360efbdSAlfred Perlstein.Fa auth . 608360efbdSAlfred PerlsteinDestruction usually involves deallocation 618360efbdSAlfred Perlsteinof private data structures. 628360efbdSAlfred PerlsteinThe use of 6311d84435SRuslan Ermilov.Fa auth 648360efbdSAlfred Perlsteinis undefined after calling 658360efbdSAlfred Perlstein.Fn auth_destroy . 668360efbdSAlfred Perlstein.It Fn authnone_create 678360efbdSAlfred PerlsteinCreate and return an RPC 688360efbdSAlfred Perlsteinauthentication handle that passes nonusable 698360efbdSAlfred Perlsteinauthentication information with each remote procedure call. 708360efbdSAlfred PerlsteinThis is the default authentication used by RPC. 718360efbdSAlfred Perlstein.It Fn authsys_create 728360efbdSAlfred PerlsteinCreate and return an RPC authentication handle that contains 738360efbdSAlfred Perlstein.Dv AUTH_SYS 748360efbdSAlfred Perlsteinauthentication information. 752efeeba5SRuslan ErmilovThe 768360efbdSAlfred Perlstein.Fa host 772efeeba5SRuslan Ermilovargument 788360efbdSAlfred Perlsteinis the name of the machine on which the information was 798360efbdSAlfred Perlsteincreated; 808360efbdSAlfred Perlstein.Fa uid 818360efbdSAlfred Perlsteinis the user's user ID; 828360efbdSAlfred Perlstein.Fa gid 838360efbdSAlfred Perlsteinis the user's current group ID; 848360efbdSAlfred Perlstein.Fa len 858360efbdSAlfred Perlsteinand 868360efbdSAlfred Perlstein.Fa aup_gids 878360efbdSAlfred Perlsteinrefer to a counted array of groups to which the user belongs. 888360efbdSAlfred Perlstein.It Fn authsys_create_default 898360efbdSAlfred PerlsteinCall 908360efbdSAlfred Perlstein.Fn authsys_create 912efeeba5SRuslan Ermilovwith the appropriate arguments. 928360efbdSAlfred Perlstein.El 938360efbdSAlfred Perlstein.Sh SEE ALSO 948360efbdSAlfred Perlstein.Xr rpc 3 , 958360efbdSAlfred Perlstein.Xr rpc_clnt_calls 3 , 968360efbdSAlfred Perlstein.Xr rpc_clnt_create 3 97