authunix_create()
Format
#include <rpc.h>
AUTH *
authunix_create(host, uid, gid, len, aup_gids)
char *host;
int uid;
int gid;
int len;
int *aup_gids;
Parameters
- host
- Specifies a pointer to the symbolic name of the host where the desired server is located.
- uid
- Specifies the user’s user ID.
- gid
- Specifies the user’s group ID.
- len
- Indicates the length of the information pointed to by aup_gids.
- aup_gids
- Specifies a pointer to an array of groups to which the user belongs.
Usage
The authunix_create() call creates and returns an authentication handle that contains UNIX-based authentication information.
Context
- auth_destroy()
- authnone_create()
- authunix_create_default()