AUTH::wantcredential_prompt_style

Description

Returns the authorization session authid’s credential prompt style that the system last requested (when the system generated an AUTH_WANTCREDENTIAL event). The value of the <authid> argument is either echo_on, echo_off, or unknown. This command is especially helpful in providing authentication services to interactive protocols (or example, telnet and ftp), where the actual text prompts and responses may be directly communicated with the remote user.

Syntax

AUTH::wantcredential_prompt_style <authid>

AUTH::wantcredential_prompt_style <authid>

  • Returns the authorization session authid’s credential prompt style that the system last requested (when the system generated an AUTH_WANTCREDENTIAL event). The value of the <authid> argument is either echo_on, echo_off, or ‘’’unknown*.

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]\"\
"
}