I have a VisualSVN server running on Windows 2008 R2 x64 using basic authentication.
I want to upgrade to use windows authentication.
However, some of the usernames set up do not match the domain usernames.
Is there a way to alias basic-auth-username to domain-username, so when someone now commits using domain-username, svn records it as their old basic-auth username?
Or is there a way to spin through the repositories and find/replace basic-auth usernames in commits to domain-auth usernames?
Or is it probably not worth the trouble?
It is possible to replace usernames in history, but slightly complicated. User name is stored in the
svn:author
property associated with every revision.svnadmin setrevprop
command can change this property.You can do it manually but it requires to run this command for all revision. So I recommend to use the following steps to simplify this work.
Create batch file chg_users.cmd.
Set old user name using OLDUSER variable. Set path to your repository using REPO variable.