mirror of
https://github.com/Yubico/yubico-pam.git
synced 2024-11-29 00:24:11 +01:00
Reduce failure points with live unverified OTP.
This commit is contained in:
parent
8bc4f7b37d
commit
751962c4b5
16
pam_yubico.c
16
pam_yubico.c
@ -426,6 +426,14 @@ pam_sm_authenticate (pam_handle_t * pamh,
|
||||
goto done;
|
||||
}
|
||||
|
||||
ykc = yubikey_client_init ();
|
||||
if (!ykc)
|
||||
{
|
||||
DBG (("yubikey_client_init() failed"));
|
||||
retval = PAM_AUTHINFO_UNAVAIL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (password == NULL)
|
||||
{
|
||||
retval = pam_get_item (pamh, PAM_CONV, (const void **) &conv);
|
||||
@ -481,14 +489,6 @@ pam_sm_authenticate (pam_handle_t * pamh,
|
||||
}
|
||||
}
|
||||
|
||||
ykc = yubikey_client_init ();
|
||||
if (!ykc)
|
||||
{
|
||||
DBG (("yubikey_client_init() failed"));
|
||||
retval = PAM_AUTHINFO_UNAVAIL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
yubikey_client_set_info (ykc, cfg.client_id, 0, NULL);
|
||||
|
||||
if (cfg.url)
|
||||
|
Loading…
Reference in New Issue
Block a user