addUserGoAhead WebServer APIGoAhead EMF

Synopsis

Persist a user to the user database.

Prototype

Int AddUser(char_t * user, char_t * password, char_t * group, 
     char_t * dir, int prot, int enable)  

Parameters

User User ID
Password password
Group user group
Dir home directory
Prot protection
Enable enabled

Description

User added. Password is passed in clear text, then XOR encrypted before persisting.

Return Value

0 if successful; -1 if error.

Example

nCheck = AddUser("misterripley", "talented", 
     "superusers", "/home/ripley", 1, 1); 	 

See Also

deleteUser