AUTH::wantcredential_prompt¶
Description¶
Returns the authorization session authid’s credential prompt string
that the system last requested (when the system generated an
AUTH_WANTCREDENTIAL event). An example of a promopt string is
Username:. The AUTH::wantcredential_prompt command is
especially helpful in providing authentication services to interactive
protocols (for example, telnet and ftp), where the actual text prompts
and responses may be directly communicated with the remote user.
Examples¶
when AUTH_WANTCREDENTIAL {
HTTP::respond 401 "WWW-Authenticate" "Basic realm=\"\""
}
when AUTH_FAILURE {
log local0. "Auth failed: \
Auth type was \"[AUTH::wantcredential_type $authid]\" \
Auth prompt was \"[AUTH::wantcredential_prompt $authid]\"\
Auth prompt style was \"[AUTH::wantcredential_prompt_style $authid]\"\
"
}