1DPNS_MODIFYUSRMAP(3)        DPNS Library Functions        DPNS_MODIFYUSRMAP(3)
2
3
4

NAME

6       dpns_modifyusrmap  - modify user entry corresponding to a given virtual
7       uid
8

SYNOPSIS

10       #include <sys/types.h>
11       #include "dpns_api.h"
12
13       int dpns_modifyusrmap (uid_t uid, char *newname, int status)
14

DESCRIPTION

16       dpns_modifyusrmap modifies the user entry corresponding to a given vir‐
17       tual uid.
18
19       uid    specifies the Virtual User Id.
20
21       newname
22              specifies  the new user name.  It must be at most 255 characters
23              long.
24
25       status status can be set  to  0  or  a  combination  of  ARGUS_BAN  and
26              LOCAL_BAN.
27
28       This function requires ADMIN privilege.
29

RETURN VALUE

31       This  routine  returns  0  if the operation was successful or -1 if the
32       operation failed. In the latter case, serrno is set appropriately.
33

ERRORS

35       EACCES       The caller does not have ADMIN privilege.
36
37       EFAULT       newname is a NULL pointer.
38
39       EEXIST       This user exists already.
40
41       EINVAL       This uid does not exist in the internal mapping  table  or
42                    the length of newname exceeds 255.
43
44       SENOSHOST    Host unknown.
45
46       SENOSSERV    Service unknown.
47
48       SECOMERR     Communication error.
49
50       ENSNACT      Name server is not running or is being shutdown.
51
52
53
54DPNS         $Date: 2010-08-04 09:58:47 +0200 (Wed, 04 AugD2P0N1S0_)MO$DIFYUSRMAP(3)
Impressum