Commit c5d41698 authored by Mattias Jernberg's avatar Mattias Jernberg Committed by Nate Graham
Browse files

Refresh pam credentials when authenticating

This is necessary to make pam_krb5 update your kerberos credential

BUG: 457179
parent 77bff9fa
Pipeline #228097 passed with stage
in 9 minutes and 43 seconds
......@@ -160,6 +160,8 @@ void PamWorker::authenticate()
Q_EMIT busyChanged(false);
if (rc == PAM_SUCCESS) {
rc = pam_setcred(m_handle, PAM_REFRESH_CRED);
/* ignore errors on refresh credentials. If this did not work we use the old ones. */
Q_EMIT succeeded();
} else {
Q_EMIT failed();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment