3

Webアプリを介してSharpSVNのRemoteCreateDirectoriesを呼び出そうとしていますが、クレデンシャルをログオンしたユーザーのクレデンシャルにします。これは暗黙的に実行できますか、それとも以下の例のようにユーザー名とパスワードが必要ですか?

using (var svnClient = new SvnClient())
{
  svnClient.Authentication.DefaultCredentials = new NetworkCredential(@"aaa\bbb", "ccc");
  svnClient.LoadConfiguration(repoName);
  svnClient.RemoteCreateDirectories(uris, args);
}

ユーザー(統合された認証アプリ)に明示的にクレデンシャルを要求したくないので、これを回避する他の唯一の方法は、理想的ではないサービスアカウントを使用することです。

4

3 に答える 3

1

CredentialCache.DefaultCredentials contains a token of the current credentials. It doesn't provide the actual username and/or password.

You would need the exact username and password to pass them to the Subversion libraries via SharpSvn.

于 2009-09-09T09:43:27.753 に答える
0

使用してみましたか?CredentialCache.DefaultCredentialsこれには、現在ログインしているユーザーの資格情報が含まれている必要があります。

http://support.microsoft.com/kb/813834

于 2009-09-08T10:39:18.560 に答える
0

Finally found a reference which essentially says this is not possible using the identity of the current user and the only options are manual construction of the directory tree or using an admin / service account. I opted for the latter; not ideal but I’m up and running nonetheless.

于 2009-09-08T11:13:59.723 に答える