您的位置:首页 > 大数据 > 人工智能

SVN报错authorization failed: Could not authenticate to server: rejected Basic challenge

2015-12-23 13:53 1066 查看
The error you get means that SVN server (Apache HTTP Server actually) rejects to authenticate you because of invalid credentials. Here are the steps to troubleshoot the error:

Do you get the password prompt? Do you get the password prompt 3 times in a row and then see this error?

If you do: the first troubleshooting step would be to double-check that the entered username and password are correct. Usernames can be case-sensitive!

The second troubleshooting steps is not so obvious; you can encounter it after changing your AD account's password. Basic authentication fails when password contains non-ASCII symbols (e.g. £, ü, ä etc.). Shortly speaking Basic auth does not support non-ASCII
characters in password.

You don't get password prompt, it just fails with the error 
authorization
failed: Could not authenticate to server: rejected Basic challenge
.

It makes sense to attempt to authenticate forcing your credentials, e.g. with the command-line:

svn
info --username USERNAME --password PASSWORD --no-auth-cache https://server/svn/repository/[/code] 
--username ARG : specify a username ARG

--password ARG : specify a password ARG

--no-auth-cache : do not cache authentication tokens

If you can authenticate with this command-line then you should clear your cached credentials. See SVNBook
| Client Credentials for details. However some GUI clients allow you to clear cache in a couple of clicks.

参考链接http://stackoverflow.com/questions/10440685/what-is-the-cause-and-solution-to-svn-could-not-authenticate-to-server-rejecte

全局选项: 

  --username ARG           : 指定用户名称 ARG

  --password ARG           : 指定密码 ARG

  --no-auth-cache          : 不要缓存用户认证令牌

  --non-interactive        : 不要交互提示

  --trust-server-cert      : 不提示的接受未知的 SSL 服务器证书(只用于选项 “--non-interactive”)

  --config-dir ARG         : 从目录 ARG 读取用户配置文件

  --config-option ARG      : 以下属格式设置用户配置选项:

                                 FILE:SECTION:OPTION=[VALUE]

                             例如:

                                 servers:global:http-library=serf
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: