How can I enable or disable an AD user account with an LDAP request?
问题 So far I was able to find users in LDAP but I don't know how can I enable or disable them. As a second question, if my account has Domain Admin rights, I will be able to enable or disable account from LDAP or not? Note: This is about a Microsoft Active Directory running on Windows 2003. I know that I can check active uses with: (!(useraccountcontrol:1.2.840.113556.1.4.803:=2)) Disabled useds: (useraccountcontrol:1.2.840.113556.1.4.803:=2) The question is how do I set the attribute in such way