Click to See Complete Forum and Search --> : NetUserSetInfo doesn't lock user acct some times.


ktalinki
April 22nd, 2003, 05:42 PM
Hi,
I am trying to put locking and unlocking user accounts functionality in to my application using NetUserSetInfo and USER_INFO_1 struct.

I figured out that NetUserSetInfo's working is bit flaky, it locks the user some times and some times doesn't, but returns success(0) code all the time.

Using NetUserSetInfo, I was able to lock the user account in the following scenarios
1>For some time after unlocking the user acct, which is locked out because of number of invalid log in attempts.
2>After restarting the machine.

Any thoughts ??

Thanks
Kumar