csvn操作过程中,数据库采用mysql数据库,从其他地方迁移过来。可以正常登陆,但svn和viewvc时出现:
Unauthorized
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
此时是因为在csvn/data/conf下的svn_auth_file,还有认证信息,如:
admin:$apr1$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
dddD123dd:$2y$08$OMqTUHdzYsHS6cINqnd1m.r/RlfxxvdXn1TkVuqnfoTYL6KSKMcO.
因二者之间的认证方式不同,故迁移造成问题的解决方案为:
1 对原先用户进行重新修改密码。
2 删除用户,重新添加用户。