Open

Description
Describe the bug
Can't authenticate using login with MFA from Windows to receive the token, and executing same auth from linux I can.
To Reproduce
Steps to reproduce the behavior:
From Linux:
vault login -token-only -method=ldap -path=customldap username=a_user
Password (will be hidden):
Initiating Interactive MFA Validation...
Enter the passphrase for methodID "a1b23d4-a9ea-83aa-b24e-abc1230429954" of type "totp":
hvs.CAESIKbFRpsz....
From Windows:
C:\bin> vault login -token-only -method=ldap -path=customldap username=a_user
Password (will be hidden):
Initiating Interactive MFA Validation...
Enter the passphrase for methodID "a1b23d4-a9ea-83aa-b24e-abc1230429954" of type "totp":
Error making API request.
URL: POST https://vault.company.com/v1/sys/mfa/validate
Code: 403. Errors:
* failed to satisfy enforcement admintotp. error: 2 errors occurred:
* MFA credentials not supplied
* login MFA validation failed for methodID: [a1b23d4-a9ea-83aa-b24e-abc1230429954]
Expected behavior
Get a token from Windows using vault.exe or add an argument like passcode=xxxxxx to can send from stdin directly
Environment:
- Vault Server Version (retrieve with
vault status
): 1.13.2 - Vault CLI Version (retrieve with
vault version
): 1.13.2 - Server Operating System/Architecture: Windows 2019 Standard Server
Vault server configuration file(s):
# Paste your Vault config here.
# Be sure to scrub any sensitive values
storage "file" {
"path" = "/vault/file"
}
listener "tcp" {
address = "0.0.0.0:8200"
tls_disable = 1
}
default_lease_ttl = "168h"
max_lease_ttl = "720h"
ui = true
log_level = "trace"
Additional context
Test it client from 1.11.x , 1.12.x and 1.13.x and got same error. can't interactive to send passcode
Activity