解锁本地Cloud Foundry用户。 uaac?

时间:2015-11-11 10:34:19

标签: cloudfoundry unlock cloudfoundry-uaa

如何解锁本地Cloud Foundry用户。没有在uaac Gem上找到一个选项?

我们的用户使用错误密码的CI / CD工具,然后他们的CF用户被锁定。

2 个答案:

答案 0 :(得分:1)

默认情况下,UAA在尝试失败后不会永久锁定帐户。这将导致帐户在一段时间内不可用(默认为5分钟),并将继续锁定5分钟,直到成功登录。如果您尚未更改默认配置,请等待5分钟,然后尝试使用正确的凭据。

答案 1 :(得分:0)

使用uaadb

select * from sec_audit;
+--------------------------------------+------------+----------------------------+----------------+---------------------+------------------+
| principal_id                         | event_type | origin                     | event_data     | created             | identity_zone_id |
+--------------------------------------+------------+----------------------------+----------------+---------------------+------------------+
| e38af5c2-ae71-406e-bfd5-2df4f8891cf7 |          1 | remoteAddress=192.168.35.27 | admin-opr | 2015-11-11 10:51:47 | uaa              |
| e38af5c2-ae71-406e-bfd5-2df4f8891cf7 |          1 | remoteAddress=192.168.35.27 | admin-opr | 2015-11-11 11:46:34 | uaa              |
| e38af5c2-ae71-406e-bfd5-2df4f8891cf7 |          1 | remoteAddress=192.168.35.27 | admin-opr | 2015-11-11 11:46:47 | uaa              |
| e38af5c2-ae71-406e-bfd5-2df4f8891cf7 |          1 | remoteAddress=192.168.35.27 | admin-opr | 2015-11-11 11:46:56 | uaa              |
| e38af5c2-ae71-406e-bfd5-2df4f8891cf7 |          1 | remoteAddress=192.168.35.27 | admin-opr | 2015-11-11 11:47:01 | uaa              |
| e38af5c2-ae71-406e-bfd5-2df4f8891cf7 |          1 | remoteAddress=192.168.35.27 | admin-opr | 2015-11-11 12:51:47 | uaa              |
| e38af5c2-ae71-406e-bfd5-2df4f8891cf7 |          1 | remoteAddress=192.168.35.27 | admin-opr | 2015-11-11 13:46:34 | uaa              |
| e38af5c2-ae71-406e-bfd5-2df4f8891cf7 |          1 | remoteAddress=192.168.35.27 | admin-opr | 2015-11-11 13:46:47 | uaa              |
| e38af5c2-ae71-406e-bfd5-2df4f8891cf7 |          1 | remoteAddress=192.168.35.27 | admin-opr | 2015-11-11 13:46:56 | uaa              |
| e38af5c2-ae71-406e-bfd5-2df4f8891cf7 |          1 | remoteAddress=192.168.35.27 | admin-opr | 2015-11-11 13:47:01 | uaa              |
+--------------------------------------+------------+----------------------------+----------------+---------------------+------------------+

截断此表并且所有锁都不在