VisualSVN如何存储密码?

我们正在运行一个VisualSVN服务器,需要创build约300个用户。 由于大规模创build用户的需求很可能会再次发生,因此我不希望使用数据录入任何人来创build帐户。 我find了以下forms的htpasswd:

test:$apr1$5tf$V0ImysKrNpxE6XW5QwyLd0 

我已经编辑了过去使用MD5hex的其他应用程序/服务器的密码文件,这显然不是。 这是什么algorithm?

“MD5”$ apr1 $“+使用一个随机的32位盐和密码的各种组合的迭代(1,000倍)MD5摘要的Apache特定algorithm的结果。有关详细信息,请参阅APR源文件apr_md5.c的algorithm“。

更多细节在这里: http : //httpd.apache.org/docs/2.2/misc/password_encryptions.html

希望有所帮助!

或者,您可以使用WMIpipe理VisualSVN Server用户和组。

 ManagementClass userClass = new ManagementClass("root\\VisualSVN", "VisualSVN_User", null); // Obtain in-parameters for the method ManagementBaseObject inParams = userClass.GetMethodParameters("Create"); // Add the input parameters. inParams["Name"] = "user1"; inParams["Password"] = "secret"; // Execute the method and obtain the return values. ManagementBaseObject outParams = userClass.InvokeMethod("Create", inParams, null); 

你可以find更多的示例在下面的链接: https : //stackoverflow.com/questions/10017282/control-visualsvn-server-from-c-sharp

从命令行:

 PowerShell Invoke-WmiMethod -Class VisualSVN_User -Name Create -ArgumentList 'user', 'password' -Namespace Root\VisualSVN