Announcement

Collapse
No announcement yet.

Need Help on DirectorySearcher.DirSync

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need Help on DirectorySearcher.DirSync

    I am using DirSync to get the changes from active directory...Its working fine if the directoryEntry is binded to the root (LDAP://DCNAME/DC=domain,DC=com)... If i change the directoryEntry path to (LDAP://DCNAME/CN=users,DC=domain,DC=com) then i am getting no changes and when i try to access the SearchResultCollection.Count it gives
    "System.Runtime.InteropServices.COMException was unhandled
    Message=Access is denied.

    Source=System.DirectoryServices
    ErrorCode=-2147024891"
    (I am using Domain Admin Account)

  • #2
    Re: Need Help on DirectorySearcher.DirSync

    Its not possible...

    The base of a DirSync search must be the root of a directory partition, which can be a domain partition, the configuration partition, or the schema partition
    src : http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

    Comment

    Working...
    X