[core,smartcard] allow userhint to match UPN
the username might match the UPN of the smartcard certificate. If not fall back to compare to userHint
This commit is contained in:
parent
4a56e2f74c
commit
1b7e0ffb97
@ -222,11 +222,14 @@ static BOOL set_info_certificate(SmartcardCertInfo* cert, BYTE* certBytes, DWORD
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userFilter && cert->userHint && strcmp(cert->userHint, userFilter) != 0)
|
if (userFilter && (!cert->upn || (strcmp(cert->upn, userFilter) != 0)))
|
||||||
{
|
{
|
||||||
WLog_DBG(TAG, "discarding non matching cert by user %s@%s", cert->userHint,
|
if (cert->userHint && strcmp(cert->userHint, userFilter) != 0)
|
||||||
cert->domainHint);
|
{
|
||||||
return FALSE;
|
WLog_DBG(TAG, "discarding non matching cert by user %s@%s", cert->userHint,
|
||||||
|
cert->domainHint);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (domainFilter && cert->domainHint && strcmp(cert->domainHint, domainFilter) != 0)
|
if (domainFilter && cert->domainHint && strcmp(cert->domainHint, domainFilter) != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user