#4642 OTP tokens can be created for nonexisting users
Closed: Fixed None Opened 9 years ago by mkosek.

# ipa otptoken-add --type=totp --owner=jdoe --desc="My soft token"
------------------
Added OTP token ""
------------------
  Unique ID: bf252545-d6b2-458a-a9d0-07a22afe6117
  Type: TOTP
  Description: My soft token
  Owner: jdoe
  Key: +akRuDBN4HTRlcHxwG/QYHgKYCE=
  Algorithm: sha1
  Digits: 6
  Clock offset: 0
  Clock interval: 30
  URI: otpauth://totp/MKOSEK-FEDORA20.TEST:bf252545-d6b2-458a-a9d0-07a22afe6117?digits=6&secret=7GURDOBQJXQHJUMVYHY4A36QMB4AUYBB&period=30&algorithm=sha1&issuer=MKOSEK-FEDORA20.TEST

# ipa otptoken-show bf252545-d6b2-458a-a9d0-07a22afe6117
  Unique ID: bf252545-d6b2-458a-a9d0-07a22afe6117
  Type: TOTP
  Description: My soft token
  Owner: jdoe

My expectation was that otptoken-add would thrown "user does not exist".


master:

  • c38e2d7 Ensure users exist when assigning tokens to them

ipa-4-1:

  • 2c1d40b Ensure users exist when assigning tokens to them

Metadata Update from @mkosek:
- Issue assigned to npmccallum
- Issue set to the milestone: FreeIPA 4.1.2

7 years ago

Log in to comment on this ticket.

Metadata