Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DirectoryEntry eLocation = new DirectoryEntry("LDAP://CN=Test User,OU=Users,OU=Development,DC=domain,DC=com");
- DirectoryEntry nLocation = new DirectoryEntry("LDAP://OU=Users,OU=QC,DC=domain,DC=com");
- eLocation.MoveTo(nLocation);
- A referral was returned from the server.
- Error code: -2147016661
- Extended Error Message 0000202B: RefErr: DSID-0310082F, data 0, 1 access points
- ref 1: 'domain.com'
- DirectoryEntry eLocation = new DirectoryEntry("LDAP://CN=Test User,OU=Users,OU=Development,DC=domain,DC=com", "domainadmin", "password");
- DirectoryEntry nLocation = new DirectoryEntry("LDAP://OU=Users,OU=QC,DC=domain,DC=com", "domainadmin", "password");
- eLocation.MoveTo(nLocation);
- nLocation.Close();
- eLocation.Close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement