Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Disable an AD Account via LDAP

by NetWallah (Abbot)
on Oct 08, 2012 at 15:34 UTC ( #997840=note: print w/ replies, xml ) Need Help??


in reply to Disable an AD Account via LDAP

The LDAP attribute you need to use is:

useraccountcontrol:1.2.840.113556.1.4.803
I do not have actual code to SET/RESET that, but you can start with: this StackOverflow article.

             I hope life isn't a big joke, because I don't get it.
                   -SNL


Comment on Re: Disable an AD Account via LDAP
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997840]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-07-29 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls