SYNOPSIS

int MGOaddprincipal (Subscription *sub, int opt)

DESCRIPTION

The MGOaddprincipal() function adds a new uwnetid principal to Kerberos. Information is passed through sub. The required and optional fields are:

sub.uwnetid is the uwnetid name. sub.subscription_data is the plaintext password. sub.attribute_data is the "gecos" data (for checking password integrity). This could contains information which would be found in the system password file's gecos field. opts can be one or more of:

RETURN VALUE

Returns 1 upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).

ERRORS

AUTHENTICATION LEVEL

wmango

SEE ALSO

MGOchkprincipal(), MGOsetpassword(), MGOzero()