Applies to: DirectControl 4.4.4, 5.0.x and above
How to unlock a user account in Active Directory from UNIX using adedit?
You can use the adedit command line interface utility:
1. Run the command.
2. In the adedit prompt, bind ADEdit to one or more domains within a forest. Binding specifies the area within which all subsequent commands work.
Syntax: bind [-gc] [-write] [-machine] [server@]domain [user [password]]
3. Then select the AD user object to be unlocked
Syntax: select_object [-rootsde] [-attrs a1[,a2,...]] dn
4. Set the userAccountControl 'lockoutTime' attribute to 0.
Syntax: set_object_field field value
5. Save the user object to AD
Example: To unlock the account for the user 'jsmith'
>select_object “CN=jsmith,OU+UNIX Users,OU=UNIX,DC=acme,DC=com”
>set_object_field lockoutTime 0
For more details on the ADEdit commands and syntax, please either run ADEdit's 'help' command followed by a command or command abbreviation OR refer to the ADEdit Programmer’s Guide.