Policy used to control user prompts.
Synopsis:
#include <sys/credential/credential_policy.h>
typedef enum {
CREDENTIAL_USER_PROMPT_POLICY_ALLOW_NONE = 1 << 0
CREDENTIAL_USER_PROMPT_POLICY_ALLOW_SOLICIT = 1 << 1
CREDENTIAL_USER_PROMPT_POLICY_ALLOW_RESOLVE = 1 << 2
CREDENTIAL_USER_PROMPT_POLICY_ALLOW_VERIFY = 1 << 3
} credential_user_prompt_policy_t;
Data:
- CREDENTIAL_USER_PROMPT_POLICY_ALLOW_NONE
- User prompts are not allowed.
- CREDENTIAL_USER_PROMPT_POLICY_ALLOW_SOLICIT
- User can be prompted for credentials.
For example, if a credential query did not produce any results.
- CREDENTIAL_USER_PROMPT_POLICY_ALLOW_RESOLVE
- User can be prompted to resolve credential conflicts.
For example, if a credential query produced multiple results.
- CREDENTIAL_USER_PROMPT_POLICY_ALLOW_VERIFY
- User can be prompted to verify credential.
For example, allow user to re-enter credentials that failed a previous authentication attempt.
Library:
libcredential (For the qcc command, use the -l bps option to link against this library)