krb5_boolean krb5_kuserok( krb5_context context, krb5_principal principal, const char *luser );
The context structure.
A Kerberos principal name.
A local username.
This routine determines whether user is authorized to log in to the account luser, given a Kerberos principal principal and a local username luser.
This routine returns one of the following KRB5 status codes:
FALSE
User is not authorized to log in.