Lines Matching refs:flags
1032 static int get_pam_items(pam_handle_t *pamh, uint32_t flags,
1051 if (ret == PAM_PERM_DENIED && (flags & FLAGS_ALLOW_MISSING_NAME)) {
1057 if (flags & FLAGS_ALLOW_MISSING_NAME) {
1500 uint32_t *flags, int *retries, bool *quiet_mode,
1509 *flags |= FLAGS_FORWARD_PASS;
1511 *flags |= FLAGS_USE_FIRST_PASS;
1513 *flags |= FLAGS_USE_AUTHTOK;
1547 *flags |= FLAGS_IGNORE_UNKNOWN_USER;
1549 *flags |= FLAGS_IGNORE_AUTHINFO_UNAVAIL;
1551 *flags |= FLAGS_USE_2FA;
1553 *flags |= FLAGS_ALLOW_MISSING_NAME;
1564 uint32_t flags)
1568 if (flags & FLAGS_USE_FIRST_PASS) {
1577 if (flags & FLAGS_USE_2FA
1597 if (flags & FLAGS_FORWARD_PASS) {
1619 uint32_t flags,
1629 if ( (getuid() != 0 || exp_data ) && !(flags & FLAGS_USE_FIRST_PASS)) {
1667 if (flags & FLAGS_USE_AUTHTOK) {
1682 if (flags & FLAGS_FORWARD_PASS) {
1758 uint32_t flags = 0;
1770 eval_argv(pamh, argc, argv, &flags, &retries, &quiet_mode, &domains);
1780 ret = get_pam_items(pamh, flags, &pi);
1783 if (flags & FLAGS_IGNORE_UNKNOWN_USER && ret == PAM_USER_UNKNOWN) {
1786 if (flags & FLAGS_IGNORE_AUTHINFO_UNAVAIL
1804 if ( !(flags & FLAGS_USE_FIRST_PASS) && pi.pam_authtok == NULL
1827 ret = get_authtok_for_authentication(pamh, &pi, flags);
1835 ret = get_authtok_for_password_change(pamh, &pi, flags, pam_flags);
1858 if (flags & FLAGS_IGNORE_UNKNOWN_USER
1862 if (flags & FLAGS_IGNORE_AUTHINFO_UNAVAIL
1942 flags &= ~FLAGS_USE_FIRST_PASS;
1959 PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
1962 return pam_sss(SSS_PAM_AUTHENTICATE, pamh, flags, argc, argv);
1966 PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc,
1969 return pam_sss(SSS_PAM_SETCRED, pamh, flags, argc, argv);
1972 PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc,
1975 return pam_sss(SSS_PAM_ACCT_MGMT, pamh, flags, argc, argv);
1978 PAM_EXTERN int pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc,
1981 return pam_sss(SSS_PAM_CHAUTHTOK, pamh, flags, argc, argv);
1984 PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh, int flags, int argc,
1987 return pam_sss(SSS_PAM_OPEN_SESSION, pamh, flags, argc, argv);
1990 PAM_EXTERN int pam_sm_close_session(pam_handle_t *pamh, int flags, int argc,
1993 return pam_sss(SSS_PAM_CLOSE_SESSION, pamh, flags, argc, argv);