Skip to content

YubiKey MFA Setup & Troubleshooting Guide

Mideye supports YubiKey hardware tokens as a second authentication factor. When a user authenticates, they enter their password followed by a one-time password (OTP) generated by touching the YubiKey button. The 44-character modhex OTP is validated by the Mideye infrastructure.

YubiKey 5 USB-A, with NFC support. Weight: 4 grams.
TypeSerial formatOTP validationExample
Mideye-providedubbc + 8-digit serialMideye token serviceubbc06434510
Commercial (third-party)zmub + 7–8-digit serialYubiCloud (Yubico)zmub05761949

When a user touches their YubiKey, it produces a 44-character modhex OTP:

cccccddbefrkdtteflufklvhtdljffhdkcierivligfr

The first 12 characters are the public identity. The remaining 32 characters are the encrypted OTP payload. The Mideye Server routes validation based on the serial prefix.

YubiKey OTPs use 16 keyboard-layout-independent characters:

c b d e f g h i j k l n r t u v

User → YubiKey OTP → Mideye Server → Mideye Switch → Token Gateway → Token Server
User → YubiKey OTP → Mideye Server → Mideye Switch → Token Gateway → Token Server → YubiCloud

Provision a Mideye-provided YubiKey (ubbc)

Section titled “Provision a Mideye-provided YubiKey (ubbc)”

The 8-digit serial number is printed on the back of the YubiKey.

If not readable: insert the key, open a text editor, touch the button, and read the first 12 characters. All Mideye-provided YubiKeys start with ubbc.

Step 2 — Register the serial in the user repository

Section titled “Step 2 — Register the serial in the user repository”

Add the serial (e.g., ubbc06434510) to the user’s directory entry.

Active Directory: The default attribute is ipPhone. This can be changed in the LDAP profile configuration under User Attributes.

AD Telephones tab with YubiKey serial in IP Phone field

Step 3 — Set authentication type to Token

Section titled “Step 3 — Set authentication type to Token”

The user’s authentication type must be set to 3 (Token).

Option A — Token serial in the mobile phone field: If the ubbc serial is in the mobile phone field, Mideye Server automatically assigns the Token type. Set the Token Number parameter to the mobile phone field.

Option B — Separate authentication type attribute:

  1. In the LDAP profile → Authentication tab, check Read Optional Attributes.
  2. Specify an Authentication Type Attribute (default for AD: pager).

LDAP profile Authentication tab

  1. Set the user’s pager attribute to 3.

AD pager field set to 3


  • The YubiKey must be registered with YubiCloud. Factory keys from Yubico are pre-configured.
  • Verify at demo.yubico.com. If it fails, upload at upload.yubico.com.
OTP prefixKey type
ccccFactory pre-configured (standard YubiCloud)
vvccCustom key (must be uploaded to YubiCloud)

Custom keys require the RADIUS client setting: Client ConfigurationAllow YubiKeys with custom keys.

From demo.yubico.com/otp/verify, or:

  1. Touch the YubiKey to generate an OTP.
  2. Copy characters 5–12 (e.g., cccccckdnhjr…).
  3. Convert with the Yubico ModHex Converter.

Yubico verification page

Add the serial as zmubXXXXXXXX in the user repository.

AD with zmub serial

Step 3 — Set authentication type to Token

Section titled “Step 3 — Set authentication type to Token”

Same as for Mideye-provided YubiKeys — set the attribute to 3.


SymptomLikely causeResolution
TOKEN_NOT_FOUNDSerial not registeredubbc: contact Mideye Support. zmub: verify at demo.yubico.com
WRONG_OTP / BAD_OTPValidation failedVerify correct key, check for damage
LOCKEDToo many failuresContact admin to unlock
TOKEN_OUT_OF_SYNCCounter mismatchTouch the key several times, retry
REPLAYED_OTPSame OTP used twiceGenerate a fresh OTP
Login times outNetwork issueCheck server logs and Switch connectivity
  • ubbc key registered as zmub → sent to YubiCloud which doesn’t have the secret → fails
  • zmub key registered as ubbc → sent to Mideye token server which doesn’t have it → TOKEN_NOT_FOUND

DetailMideye-providedCommercial
Serial prefixubbczmub
OTP length44 characters (modhex)44 characters (modhex)
ValidationMideye token serverYubiCloud
Internet requiredDepends on deploymentYes
Auth type3 (Token)3 (Token)
AD attribute (serial)ipPhone (default)ipPhone (default)
AD attribute (auth type)pager (default)pager (default)