Skip to content

Commit 8602f82

Browse files
committed
pam: Do not prevent root from changing auth token
1 parent 132d208 commit 8602f82

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/sss_client/pam_sss.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,9 +2756,6 @@ static int get_authtok_for_password_change(pam_handle_t *pamh,
27562756
}
27572757

27582758
if (pam_flags & PAM_PRELIM_CHECK) {
2759-
if (getuid() == 0 && !exp_data )
2760-
return PAM_SUCCESS;
2761-
27622759
if (flags & PAM_CLI_FLAGS_USE_2FA
27632760
|| (pi->otp_vendor != NULL && pi->otp_token_id != NULL
27642761
&& pi->otp_challenge != NULL)) {

0 commit comments

Comments
 (0)