The information in this article applies to:
SYMPTOMSWhen you are using a program to read and reset the user account lockout bit, your program may never report a user as locked out. The code you are using may look like the following sample script (written in the Visual Basic Scripting Edition):
The userAccountControl property also does not reflect the locked-out status.
CAUSEThe IsAccountLocked property is not accessible by using the Lightweight Directory Access Protocol (LDAP) provider. The lockout flag is not stored in Active Directory, but is created on-the-fly only when you access Active Directory by using the WinNT provider. RESOLUTIONTo read or reset the lockout bit, use the WinNT provider to gain access to Active Directory. The following sample script (written in VBScript) demonstrates this method:
The userFlags property has the UF_LOCKOUT bit set as well.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONUser lockout uses the user's lockoutTime property. When you are accessing Active Directory by using the LDAP provider, you can use it to determine the lockout status of the user. If it is larger than zero, the user is currently locked out. To undo the lockout, set the value to zero. Additional query words:
Keywords : kbprb |
Last Reviewed: January 14, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |