mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-08 03:54:20 +01:00
check yubikey owner when told to
This commit is contained in:
parent
211e370195
commit
2ebaaaeb1f
@ -34,15 +34,14 @@ if ($ad == null) {
|
|||||||
debug($ad);
|
debug($ad);
|
||||||
}
|
}
|
||||||
|
|
||||||
//// Check the client ID
|
//// Check the client ID - does the client own the Yubikey?
|
||||||
//
|
//
|
||||||
// TODO - This may be too strict. Since our database doesn't keep track of that
|
|
||||||
|
|
||||||
//if ($ad['client_id'] != $client) {
|
if ($ad['chk_owner'] && $ad['client_id'] != $client) {
|
||||||
// debug('Client-'.$client.' is not the owner of the Yubikey! The key will be suspended with excessive failed attempts.');
|
debug('Client-'.$client.' is not the owner of the Yubikey!');
|
||||||
// sendResp(S_BAD_CLIENT, 'Not owner of the Yubikey');
|
sendResp(S_BAD_CLIENT, 'Not owner of the Yubikey');
|
||||||
// exit;
|
exit;
|
||||||
//}
|
}
|
||||||
|
|
||||||
$k = b64ToModhex($ad['secret']);
|
$k = b64ToModhex($ad['secret']);
|
||||||
//debug('aes key in modhex = '.$k);
|
//debug('aes key in modhex = '.$k);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user