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.
"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"
Marked as answer by bin hex on Nov 22, 2012 05:40 AM
bin hex
Member
2 Points
25 Posts
Need Help on DirectorySearcher.DirSync
Nov 19, 2012 01:03 PM|LINK
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)
Angie xu - M...
All-Star
20267 Points
1726 Posts
Microsoft
Re: Need Help on DirectorySearcher.DirSync
Nov 21, 2012 06:35 AM|LINK
Hi
You could refer the problem discussed about Finding CN of users in Active Directory in this case, and check whether helpful –
http://stackoverflow.com/questions/4157201/finding-cn-of-users-in-active-directory
hope it helps you.
Kind regards
Feedback to us
Develop and promote your apps in Windows Store
bin hex
Member
2 Points
25 Posts
Re: Need Help on DirectorySearcher.DirSync
Nov 21, 2012 12:12 PM|LINK
Its not possible...Please refer the MSDN here
"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"