Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trap the event "user account locked out"

Status
Not open for further replies.

ramass

Programmer
Jul 10, 2001
19
0
0
FR
Hi,

I would like to execute an action each time a user account is locked out in Active Directory. I think that it is possible by trapping an event (perhaps a "userAccountLockedOutEvent") but I cannot find the right event.
After browsing the web during hours, two questions remains:
- Which event must I trap ?
- How can I trap It ?


WMI can be used. Follow the URL:
and find "Handling WMI events"

Unfortunately, the library
Code:
 System.management
is not found by .NET.


Do you have any idea ?
 

If you can't find out how to trap the event you could run an LDAP query every so often to see if any users accounts are locked out. I am not sure about the server load for a larger system but I don't think it would be an issue for a smaller company.

I can send some of the code for running this LDAP query if you want.
 
Thanks for the answer

I have thought about this solution but the company has more than 5000 employees !!... and the event must be trapped 5 minutes maximum after the user account locks out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top