Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# active directory
one of Our client need a date-wise list of Number of users locked out.
Eg.
 
 
 
Date locked outNumber of users locked outTotal attempt made by all user after
12-Jan-13 3 users 30 attempts
10-Jan-13 3 users 30 attempts
 

For this we need to get the history of the locked-out.
How can we achieved this using C# code?.
We are getting " result.Properties["badPasswordTime"][0] ",
result.Properties["badPwdCount"], result.Properties["lockoutTime"][0] etc. But it is not giving the desired result. Can anyone help me to sout-out this issue?
Posted 25-Mar-13 3:57am
Edited 25-Mar-13 20:04pm
v3
Comments
Prasad Khandekar at 25-Mar-13 9:28am
   
You can retrieve this information via event log. I am not so sure about whether AD maintains any such history. This MSDN article will provide you a way forward. (http://technet.microsoft.com/en-us/library/cc776964(v=ws.10).aspx)
SHAJANCHERIAN at 26-Mar-13 1:26am
   
Thank you Prasad,
This will help me a lot..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 400
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 DamithSL 95
4 Garth J Lancaster 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 26 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100