SYNOPSIS

int MGOsetpassword (Subscription *sub, int opt)

DESCRIPTION

The MGOsetpassword() function sets a uwnetid principal's Kerberos password. 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. opt can be one 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

MGOaddprincipal(), MGOchkprincipal(), MGOzero()