3.16.5. 重新同步多因素身份验证 TOTP 令牌
重新同步多因素验证(MFA)基于时间的一次性密码令牌。
先决条件
- 一个正在运行的 Red Hat Ceph Storage 集群。
- 已安装 Ceph 对象网关。
- 在 Ceph 监控节点上具有 root 访问权限。
-
使用
radosgw-admin mfa create
创建 MFA TOTP 令牌。
流程
在时间偏移或检查失败时,重新同步多因素验证 TOTP 令牌。
这需要连续两个 pin:前一个 pin 和当前的 pin。
语法
radosgw-admin mfa resync --uid=USERID --totp-serial=SERIAL --totp-pin=PREVIOUS_PIN --totp=pin=CURRENT_PIN
radosgw-admin mfa resync --uid=USERID --totp-serial=SERIAL --totp-pin=PREVIOUS_PIN --totp=pin=CURRENT_PIN
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 将 USERID 设置为用户名称 MFA is is on,将 SERIAL 设置为代表 TOTP 令牌 ID 的字符串,将 PREVIOUS_PIN 设置为用户的先前 PIN,并将 CURRENT_PIN 设置为用户的当前 PIN。
示例
radosgw-admin mfa resync --uid=johndoe --totp-serial=MFAtest --totp-pin=802017 --totp-pin=439996
radosgw-admin mfa resync --uid=johndoe --totp-serial=MFAtest --totp-pin=802017 --totp-pin=439996
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 通过测试新 PIN 验证令牌是否已重新同步:
语法
radosgw-admin mfa check --uid=USERID --totp-serial=SERIAL --totp-pin=PIN
radosgw-admin mfa check --uid=USERID --totp-serial=SERIAL --totp-pin=PIN
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 将 USERID 设置为用户名称 MFA is is on,将 SERIAL 设置为代表 TOTP 令牌 ID 的字符串,并将 PIN 设置为用户的 PIN。
示例
radosgw-admin mfa check --uid=johndoe --totp-serial=MFAtest --totp-pin=870305
[root@mon ~]# radosgw-admin mfa check --uid=johndoe --totp-serial=MFAtest --totp-pin=870305 ok
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
其它资源
- 如需更多信息,请参阅 创建新的多因素身份验证 TOTP 令牌。