mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 01:52:18 +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);
|
||||
}
|
||||
|
||||
//// 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) {
|
||||
// debug('Client-'.$client.' is not the owner of the Yubikey! The key will be suspended with excessive failed attempts.');
|
||||
// sendResp(S_BAD_CLIENT, 'Not owner of the Yubikey');
|
||||
// exit;
|
||||
//}
|
||||
if ($ad['chk_owner'] && $ad['client_id'] != $client) {
|
||||
debug('Client-'.$client.' is not the owner of the Yubikey!');
|
||||
sendResp(S_BAD_CLIENT, 'Not owner of the Yubikey');
|
||||
exit;
|
||||
}
|
||||
|
||||
$k = b64ToModhex($ad['secret']);
|
||||
//debug('aes key in modhex = '.$k);
|
||||
|
Loading…
x
Reference in New Issue
Block a user