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

krb5_prompter_posix — Prompt the user for the Kerberos password

  Table of Contents



C Prototype

krb5_error_code krb5_prompter_posix (
krb5_context context,
void *data,
const char *name,
const char *banner,
int num_prompts,
krb5_prompt prompts[] );


context (input/output) 

The context structure.

data (input) 

[Not used].

name (input) 

Name to output during prompt.

banner (input) 

Banner to output during prompt.

num_prompts (input) 

The number of prompts passed in prompts.

prompts (input/output) 

A structure containing output prompts and replies.


This routine prompts the user for the Kerberos password associated with the given principal name, and sets the reply field of the prompts argument to the password input. The hidden flag in the prompts structure controls whether the password input is echoed back to the terminal.

Return Values

This routine returns one of the following KRB5 status code:

0Successful completion.