Lines Matching refs:ok
177 bool ok = 1;
193 /* If no verification is requested, then simply return an OK */
222 ok = (pam_error == PAM_SUCCESS);
224 if (ok) {
225 ok = (pam_set_item(pamh, PAM_TTY, ttyName) == PAM_SUCCESS) &&
229 if (ok && (SESS_AUTH & flags)) {
233 /* PAM auth was OK */
234 dbglog("PAM Authentication OK for %s", user);
237 ok = 0;
250 if (ok && (SESS_ACCT & flags)) {
255 * PAM account was OK, set the flag which indicates that we should
259 dbglog("PAM Account OK for %s", user);
268 * We're checking the account, so it's ok to not have one
276 ok = 0;
284 if (ok && try_session && (SESS_ACCT & flags)) {
293 ok = 0;
301 if (!ok) return SESSION_FAILED;