Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Merged PR 4885: Ignore LSASS error during Smart Card prompt
Browse files Browse the repository at this point in the history
Ignore LSASS error during Smart Card prompt

Related work items: #135551
  • Loading branch information
RBoulton-BT committed Mar 6, 2018
1 parent 57072f6 commit 243473d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lsass/interop/auth/pam/pam-auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,6 @@ pam_sm_authenticate(
else if (pPamContext->pamOptions.bSmartCardPrompt)
{
dwError = LsaOpenServer(&hLsaConnection);
BAIL_ON_LSA_ERROR(dwError);

/*
* Prompt for the smart card PIN, or the password if no smart card
Expand All @@ -688,7 +687,7 @@ pam_sm_authenticate(
* allocation failures). This entry is marked "requisite", so
* that if it fails the whole authentication sequence will fail.
*/
dwError = sm_prompt(pamh, pConfig, pPamContext, hLsaConnection, &ctx, &pObject);
if (dwError == LW_ERROR_SUCCESS) dwError = sm_prompt(pamh, pConfig, pPamContext, hLsaConnection, &ctx, &pObject);

if (dwError == LW_ERROR_SUCCESS && pObject != NULL)
{
Expand Down

0 comments on commit 243473d

Please sign in to comment.