The requested operation failed due to a permissions problem encountered while accessing a remote directory. Check that your ...

The requested operation failed due to a permissions problem encountered while accessing a remote directory. Check that your account has permission to perform this operation. Then check that the directory service on this server has permission to set up replication on a remote directory. Both directory services must be running under the same service account, and the service account must have the Service Account Admin role on the site object.