AS400.validateSignon()不会将失败的登录尝试重置为0 [英] AS400.validateSignon() does not reset the failed signon attempts to 0

查看:97
本文介绍了AS400.validateSignon()不会将失败的登录尝试重置为0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用com.ibm.as400.access.AS400.validateSignon()对用户的凭证进行身份验证并且他们通过了验证并成功连接后,它不会将失败的登录尝试"重置为0. >

输入错误密码时,尝试登录失败"字段将增加;成功登录失败的登录尝试"时,仍然认为存在无效的登录.奇怪的是,以前的登录"已使用正确的日期和日期进行了更新.时间.

这是as400上DSPUSRPRF的转储:

User profile . . . . . . . . . . . . . . . : BOB
Previous sign-on . . . . . . . . . . . . . : 12/12/05 21:34:08
Password verifications not valid . . . . . : 4
Status . . . . . . . . . . . . . . . . . . : *ENABLED

我唯一设法重置失败的登录尝试"的方法是通过使用工具箱禁用并重新启用用户.这不是可行的解决方案,因为这会更新更改日期&时间在用户个人资料上.

此行为与绿屏telnet会话的处理方式矛盾,当用户登录as400时,失败的登录尝试"被归零.

任何建议和/或解决方案都将受到感激.

解决方案

可以使用

When I use com.ibm.as400.access.AS400.validateSignon() to authenticate a user's credentials and they pass the validation, and have successfully connected, it does not reset the "failed signon attempts" to 0.

When entering an incorrect password the field "failed signon attempts" is incremented; when successfully signing on the "failed signon attempts" still maintains that there were invalid signons. Strangely enough the "previous sign-on" is updated with the correct date & time.

Here is a dump of DSPUSRPRF on the as400:

User profile . . . . . . . . . . . . . . . : BOB
Previous sign-on . . . . . . . . . . . . . : 12/12/05 21:34:08
Password verifications not valid . . . . . : 4
Status . . . . . . . . . . . . . . . . . . : *ENABLED

The only was I have managed to get the "failed signon attempts" to reset was by disabling and re-enabling the user using the toolbox. This is not a viable solution as this updates the change date & time on the user profile.

This behaviour is contradictory to the way that our green screen telnet session is handled, when a user logs into the as400 the "failed signon attempts" are zeroised.

Any suggestions and/or resolutions are gratefully accepted.

解决方案

Can you use the QSYGETPH API instead? According to the documentation there it says "Resets the signon attempts not valid count to zero."

这篇关于AS400.validateSignon()不会将失败的登录尝试重置为0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆