yubikey-manager icon indicating copy to clipboard operation
yubikey-manager copied to clipboard

Cannot set auto eject timeout.

Open yuyue9284 opened this issue 2 years ago • 1 comments

  • YubiKey Manager (ykman) version: 4.0.8
  • How was it installed?: By pip
  • Operating system and version: Win 11
  • YubiKey model and version: Yubico Yubikey 4, version=Version(major=4, minor=4, patch=5)
  • Bug description summary: Cannot set auto eject timeout.

Steps to reproduce

python -m ykman.cli config mode ccid --touch-eject --autoeject-timeout 7200 -f Then the timeout is always set to 0.

Expected result

auto eject timeout should be set to 0 with touch-eject enabled.

[What did you expect to happen when you did the above?]

Actual results and logs

config=DeviceConfig(enabled_capabilities={<TRANSPORT.USB: 'usb'>: <CAPABILITY.128|64|OATH|PIV|OPENPGP|4: 252>}, auto_eject_timeout=0, challenge_response_timeout=0, device_flags=<DEVICE_FLAG.0: 0>),

[What actually happened?]

Other info

[Anything else you would like to add?]

yuyue9284 avatar May 20 '22 05:05 yuyue9284

The YubiKey 4 doesn't support reading the value of this setting, so the value shown in the DeviceConfig will always be 0 unfortunately. The command should still work and the setting should take effect after removal and re-insertion of the YubiKey. Can you confirm if that is the case?

dainnilsson avatar Aug 25 '22 11:08 dainnilsson

Closing due to inactivity, please reopen/comment if new information can be provided.

dainnilsson avatar Oct 21 '22 07:10 dainnilsson