1832298 Members
2067 Online
110041 Solutions
New Discussion

resetting login fails

 
SOLVED
Go to solution
Gregg Parmentier
Frequent Advisor

resetting login fails


How do I reset the count of login fails on an account? I would have thought that it'd be easy to find a way to do this in the help for authorize, but I'm not seeing anything.
5 REPLIES 5
Hein van den Heuvel
Honored Contributor
Solution

Re: resetting login fails

>> How do I reset the count of login fails on an account?

Simple: You log in succesfully to that account!

Or... SMOP... That count is maintained in field UAF$W_LOGFAILS in the SYSUAF record for the user. Read it, reset it.

I happened to have a command file which may, or might not, accomplish this....

$!libr/extr=$uafdef/out=uafdef.tmp sys$library:lib.mlb
$!sea uafdef.tmp lgicmd
$!EQU UAF$W_LOGFAILS 356
$
$write sys$output "--''p1'--"
$open /write/read/share=write uaf 'f$parse("SYSUAF","SYS$SYSTEM:.DAT",,,"SYNTAX_ONLY")
$loop:
$ read/end=done uaf rec
$ if p1.nes."" then read/end=done/key=&p1 uaf rec
$ logfail=f$cvsi(356*8,16,rec)
$ username=f$extr(0,12,rec)
$ if logfail.gt.0 then write sys$output username, ": ", logfail
$ if p2.nes.""
$ then
$ rec[356*8,16] = 'p2
$ write /symbol/update uaf rec
$ endif
$ if p1.eqs."" then goto loop
$done:
$close uaf



Good luck,
Hein.
Gregg Parmentier
Frequent Advisor

Re: resetting login fails


Great. They're accounts used exclusively for non-interactive logins. The folks with the passwords don't have any interactive access (which is the kind of login needed to reset the count), and I don't have the passwords.

I'll see what I can do with what you've given me.
Arch_Muthiah
Honored Contributor

Re: resetting login fails

Gregg,

how about setting the sysgen parameter LGI_BRK_LIM and not allowing the login attempt again for specified amount of time using another sysgen parameter LBI_HID_TIM for any user

rgds
Archunan
Regards
Archie
Wim Van den Wyngaert
Honored Contributor

Re: resetting login fails

** Simple: You log in succesfully to that account! **

That if you don't use rlogin with a proxy.

Wim

Wim
Gregg Parmentier
Frequent Advisor

Re: resetting login fails

That peocedure worked fine, even if it did make me nervous.