I have a master ‘VisualSVN server`. It contains tens of repositories with many revisions.
In order to have a replication, I have configured a Slave Server
.
Currently I can create new Slave VDFS
repositories and make them in sync with Master Server with no issues and all configuration to allow Slave partner to connect to Master server using a self-signed certificate is done properly.
Since number of repositories is not small, so I tried to use method described in Deploying VDFS slave repositories using replication seeds.
All the process goes well until I tried to import repository to master server and Master server says: Access is denied
. As I already mentioned, I can connect to Master server using certificate that I generated but for Importing repository there are not options to tell the VisualSVN Server to authenticate the Slave Server by certificate.
I saw this in the master server event logs:
It said that Active Directory
authentication method is used while I should use Certificate
for authentication.
I tried to do this using VisualSVN PowerShell Import-SvnRepository Command however it also failed as well and here is the log:
PS E:Repositories> Import-SvnRepository D:TempRepo1Repo1 -DestinationName Repo1 -Verbose
VERBOSE: Running the following operation: CIM method Import on the ROOTVisualSVNPS_SvnRepository CIM object.
Import-SvnRepository : Failed to access the remote VDFS service
The remote procedure call failed: Access is denied.
At line:1 char:1
+ Import-SvnRepository D:TempRepo1Repo1 -DestinationNa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (PS_SvnRepository:ROOTVisualSVNPS_SvnRepository) [Import-SvnRepository],
CimException
+ FullyQualifiedErrorId : HRESULT 0x80041001,Import-SvnRepository
The help for this command is as below:
The question is how can I enforce Certifcate-Based
authentication for Importing the repository from the repository seed?