Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. DirectoryEntry eLocation = new DirectoryEntry("LDAP://CN=Test User,OU=Users,OU=Development,DC=domain,DC=com");
  2. DirectoryEntry nLocation = new DirectoryEntry("LDAP://OU=Users,OU=QC,DC=domain,DC=com");
  3. eLocation.MoveTo(nLocation);
  4.  
  5. A referral was returned from the server.
  6. Error code: -2147016661
  7. Extended Error Message 0000202B: RefErr: DSID-0310082F, data 0, 1 access points
  8. ref 1: 'domain.com'
  9.  
  10. DirectoryEntry eLocation = new DirectoryEntry("LDAP://CN=Test User,OU=Users,OU=Development,DC=domain,DC=com", "domainadmin", "password");
  11. DirectoryEntry nLocation = new DirectoryEntry("LDAP://OU=Users,OU=QC,DC=domain,DC=com", "domainadmin", "password");
  12. eLocation.MoveTo(nLocation);
  13. nLocation.Close();
  14. eLocation.Close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement