Joe Kaplan
2007-01-05 16:12:44 UTC
whenChanged is replicated, so that can be used. However, it is not
typically used this this purpose. You are generally better off using the
Directory Synch control for doing change tracking or doing explicit polling
on the usnChanged attribute. The DirectorySearcher in .NET 2.0 includes
access to the DirSynch stuff and makes it pretty easy to consume. We cover
how to use that in ch 5 of our book (see link below if interested).
The downside of using dir sync or usnChanged polling is that usnChanged is
not replicated, so you must use a specific domain controller for change
tracking. This approach generally yields better results anyway, but it may
not be appropriate for your particular scenario.
I'd suggest staying away from anything that points you towards forcing
replication. That is almost always a bad design and should not be necessary
for this type of application.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
typically used this this purpose. You are generally better off using the
Directory Synch control for doing change tracking or doing explicit polling
on the usnChanged attribute. The DirectorySearcher in .NET 2.0 includes
access to the DirSynch stuff and makes it pretty easy to consume. We cover
how to use that in ch 5 of our book (see link below if interested).
The downside of using dir sync or usnChanged polling is that usnChanged is
not replicated, so you must use a specific domain controller for change
tracking. This approach generally yields better results anyway, but it may
not be appropriate for your particular scenario.
I'd suggest staying away from anything that points you towards forcing
replication. That is almost always a bad design and should not be necessary
for this type of application.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
IŽm currently researching on the best way to track if a user has changed
any
of its attributes recently. IŽm developing in .net.
IŽve found that the whenChanged attribute stores the date and time of the
last change made to the user, but IŽve also read that this attribute is
not
replicated among domain controllers, so i have some question on that
1. How can i make sure the whenChanged attribute is the same among all DC?
can I force a Directory Synchronization? (how can I do it? any articles
urls
will be appreciated).
2. If I force a DC sync operation, will these replicate the whenChanged
attribute?
3. Is there any other method to track the active directory changes? IŽve
read this article "http://support.microsoft.com/kb/891995" but have not
found
further info on this.
Thanks for any help.
--
Jairo Andrés Portela S.
.Net developer
any
of its attributes recently. IŽm developing in .net.
IŽve found that the whenChanged attribute stores the date and time of the
last change made to the user, but IŽve also read that this attribute is
not
replicated among domain controllers, so i have some question on that
1. How can i make sure the whenChanged attribute is the same among all DC?
can I force a Directory Synchronization? (how can I do it? any articles
urls
will be appreciated).
2. If I force a DC sync operation, will these replicate the whenChanged
attribute?
3. Is there any other method to track the active directory changes? IŽve
read this article "http://support.microsoft.com/kb/891995" but have not
found
further info on this.
Thanks for any help.
--
Jairo Andrés Portela S.
.Net developer