Re: CommitChanges and delay?



It should be changing the directory synchronously. Are you absolutely
positive that you are searching to get your changes from the same DC you
made the edit on? Are you reading the GC?

The only behavior I'm aware of that could cause the write to not actually
"write" immediately is the (LDAP_SERVER_LAZY_COMMIT_OID )
1.2.840.113556.1.4.841 control, although I don't really know a ton about it
and am not sure if ADSI uses it under the hood. It isn't something you can
turn on or off if it is and isn't implemented in the .NET layer. You could
find out for sure if it is in there by sniffing the wire traffic.

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
--
"Gary Stewart" <Gary Stewart@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6B79E8D2-210F-4B46-B14F-BC484C15424A@xxxxxxxxxxxxxxxx
When I add or delete a user from an AD Group using the .Net directoryentry
object, it appears that at certain times there is a delay in the change
taking place.

The problem this is causing is that I immediately turn around and attempt
to
refresh a list of objects after the operation and the data can come back
inaccurate.

Is there anyway to make CommitChanges a blocking call or to determine when
the changes actually take place?

Thanks,
Gary


.



Relevant Pages

  • Re: Web Single Sign On
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... current Windows credentials to the server, ... This common identity is the user's username used to logon to the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Changing ADAM user password
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... Running the bind from another W2K3SP1 machine ... support in digest or something like that. ...
    (microsoft.public.windows.server.active_directory)
  • Re: ASP.NET 2.0 WindowsTokenRoleProvider Local Groups Broken
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... There is no Group property on the WindowsIdentity object in .NET 2.0, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Secure SSL with LDAP and AD
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... LDAP over SSL with a third-party certification authority. ... Note that a self signed cert is probably a very poor choice as nothing ...
    (microsoft.public.windows.server.security)
  • Re: SignOn Problem during Team Foundation WebTest Playback
    ... That sounds likely to me (the query string parameters). ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.windows.server.active_directory)