SYNOPSIS

int MGOchkprincipal (Subscription *sub)

DESCRIPTION

The MGOchkprincipal() function checks to see if the uwnetid principal is valid with respect to Kerberos. The required fields are:

sub.uwnetid is the uwnetid name. sub.subscription_data is the plaintext password.

RETURN VALUE

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

ERRORS

AUTHENTICATION LEVEL

rmango

SEE ALSO

MGOaddprincipal(), MGOsetpassword(), MGOzero()