Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We are running a VisualSVN Server that needs ~300 users to be created. As the need to mass create users is likely to reoccur, I'd prefer not to task someone with data entry for account creation. I've found the htpasswd which has following form:

test:$apr1$5tf$V0ImysKrNpxE6XW5QwyLd0

I've edited password files for other apps/servers in the past that used MD5 hex which this clearly is not. What algorithm is this?

share|improve this question

2 Answers 2

"MD5 "$apr1$" + the result of an Apache-specific algorithm using an iterated (1,000 times) MD5 digest of various combinations of a random 32-bit salt and the password. See the APR source file apr_md5.c for the details of the algorithm."

More details here: http://httpd.apache.org/docs/2.2/misc/password_encryptions.html

Hope that helps!

share|improve this answer

Alternatively you can manage VisualSVN Server users and groups using WMI.

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);

You can find more samples on link below: http://stackoverflow.com/questions/10017282/control-visualsvn-server-from-c-sharp

share|improve this answer
    
Thanks! I'd vote this up, but I need two more points. –  somehume Aug 7 '12 at 13:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.