CN | User-Account-Control |
Ldap-Display-Name | userAccountControl |
Size | 4 bytes. |
Update Privilege | This value is set by the system. |
Update Frequency | Each time the account policy changes. |
Attribute-Id | 1.2.840.113556.1.4.8 |
System-Id-Guid | bf967a68-0de6-11d0-a285-00aa003049e2 |
Syntax | Enumeration |
You cannot set some of the values on a user or computer object because these values can be set or reset only by the directory service.
The flags are cumulative. To disable a user's account, set the UserAccountControl attribute to 0x0202 (0x002 + 0x0200). In decimal, this is 514 (2 + 512).
Since User-Account-Control-Attribute is a constructed attribute, it cannot be used in an LDAP search filter.
Specifically, the ones that are not accurately displayed in Microsoft Active Directory or can not be modified from LDAP are:
Active Directory actually uses different mechanisms to control these account properties, so DO NOT try to read them from userAccountControl if you require the values to be accurate.There is also, "User must change password at next logon" that is controlled by the PwdLastSet attribute.
Note: In a Windows Server 2003-based domain, LOCK_OUT and PASSWORD_EXPIRED have been replaced with a new attribute called ms-DS-User-Account-Control-Computed. For more information about this new attribute, visit the following Web site:
http://msdn2.microsoft.com/en-us/library/ms677840.aspx