Last post Aug 12, 2011 03:07 PM by smirnov
Aug 03, 2011 04:55 AM|Nirmal KJ|LINK
I want to from get the changed user objects after a particular date. But i dont know how to form the ldap query using whenChanged Attribute becasue its type is "UTC coded time". I use a c sharp program to read that attribute i get the date and time format.
search.SearchScope = SearchScope.Subtree;
SearchResult sr = search.FindOne();
foreach (object value in sr.Properties["whenChanged"])
string val = value.ToString();
DateTime dt = Convert.ToDateTime(val);
I get the following out put
7/4/2011 2:47:46 PM
now i want to know how to use the date on (&(objectClass=User)(ObjectCategory=person)(sAMAccountType=805306368)(whenChanged=??????????????))
How to convert the value and how to use it? Kindly give ur reply...
Aug 03, 2011 10:26 AM|gww|LINK
You will probably have to convert date you want to search for, to UTC time. The problem you may have it finding which domain controller has that information.
Aug 12, 2011 03:07 PM|smirnov|LINK