[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here
HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_kuserok — Determine whether the local user is authorized to log in

 » Table of Contents

 » Glossary

 » Index

C Prototype

krb5_boolean krb5_kuserok(
krb5_context context,
krb5_principal principal,
const char *luser );

Arguments

context (input) 

The context structure.

principal (input)  

A Kerberos principal name.

luser (input) 

A local username.

Description

This routine determines whether user is authorized to log in to the account luser, given a Kerberos principal principal and a local username luser.

Return Values

This routine returns one of the following KRB5 status codes:

TRUE User is authorized to log in.

FALSE

User is not authorized to log in.