Click here to Skip to main content
11,580,000 members (73,186 online)
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 2:57am
Edited 25-Mar-13 19: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 218
1 Frankie-C 170
2 Abhinav S 65
3 Sergey Alexandrovich Kryukov 49
4 Dave Kreskowiak 45
0 OriginalGriff 1,003
1 Sergey Alexandrovich Kryukov 750
2 Abhinav S 583
3 F-ES Sitecore 420
4 Dave Kreskowiak 419


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 26 Mar 2013
Copyright © CodeProject, 1999-2015
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