Yum using proxy that requires authentication and a Password that contains the two characters / fails
normally I can get yum to work with a proxy that requires authentication when required by doing something like
http_proxy=http://<my username>:<my password>@<proxy server>:<proxy server port> export http_proxy
or by filling in the appropriate information in yum.conf.
But if the password contains the characters / this does not work. I have tried quoting the password in various ways none seem to work
eg
export http_proxy=/alid@proxy.example.com:80 export http_proxy='/alid@proxy.example.com:80' export http_proxy="/alid@proxy.example.com:80" export http_proxy=\/alid@proxy.example.com:80
Anyone have any ideas for a work around to this that doesn't involve changing the password or modifying the proxy config ?
I have tried reporting this as http://bugs.centos.org/view.php?id=4123 but mantisbt presents the information I submitted in a way I didn't expect. If anyone can tell me how to modify the bug report to look the way I expected please let me know.
On Tue, Jan 5, 2010 at 8:32 PM, Clint Dilks clintd@scms.waikato.ac.nz wrote:
Yum using proxy that requires authentication and a Password that contains the two characters / fails
normally I can get yum to work with a proxy that requires authentication when required by doing something like
http_proxy=http://<my username>:<my password>@<proxy server>:<proxy server port> export http_proxy
or by filling in the appropriate information in yum.conf.
But if the password contains the characters / this does not work. I have tried quoting the password in various ways none seem to work
eg
export http_proxy=/alid@proxy.example.com:80 export http_proxy='/alid@proxy.example.com:80' export http_proxy="/alid@proxy.example.com:80" export http_proxy=\/alid@proxy.example.com:80
Anyone have any ideas for a work around to this that doesn't involve changing the password or modifying the proxy config ?
I have tried reporting this as http://bugs.centos.org/view.php?id=4123 but mantisbt presents the information I submitted in a way I didn't expect. If anyone can tell me how to modify the bug report to look the way I expected please let me know.
I've tried many, many variations of this. There is a "proxy_username" and "proxy_password" option (man yum.conf for the particulars) but nothing I tried worked. I am using a Windows proxy at my work (don't have any choice in that).
So far I've tried quoting using double and single quotes, escaping, escaping and quoting, using the password in an environment variable, etc.. None worked if the password contained any symbols. I now choose passwords with only alphanumeric characters to get around it.
On 06/01/10 01:32, Clint Dilks wrote:
Yum using proxy that requires authentication and a Password that contains the two characters / fails
I would strongly encourage you to open an issue report at http://bugs.centos.org
On Tue, Jan 5, 2010 at 5:51 PM, Karanbir Singh mail-lists@karan.org wrote:
On 06/01/10 01:32, Clint Dilks wrote:
Yum using proxy that requires authentication and a Password that contains the two characters / fails
I would strongly encourage you to open an issue report at http://bugs.centos.org
It's there. See the OP's post.
http://bugs.centos.org/view.php?id=4123
:-D
Akemi
On 06/01/10 01:53, Akemi Yagi wrote:
I would strongly encourage you to open an issue report at http://bugs.centos.org
Cheers, I am off to sleep.
Clint Dilks wrote:
export http_proxy=/alid@proxy.example.com:80 export http_proxy='/alid@proxy.example.com:80' export http_proxy="/alid@proxy.example.com:80" export http_proxy=\/alid@proxy.example.com:80
I think I'd try...
export http_proxy="\/alid@proxy.example.com:80"
which I didn't see in your examples.
but... I thought it was user:password@hostname, not password@hostname ??
John R Pierce wrote:
Clint Dilks wrote:
export http_proxy=/alid@proxy.example.com:80 export http_proxy='/alid@proxy.example.com:80' export http_proxy="/alid@proxy.example.com:80" export http_proxy=\/alid@proxy.example.com:80
I think I'd try...
export http_proxy="\\/alid@proxy.example.com:80"
which I didn't see in your examples.
but... I thought it was user:password@hostname, not password@hostname ??
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
it is sorry
These should all read
export http_proxy=http://<user>:/alid@proxy.example.com:80 export http_proxy='http://<user>:/alid@proxy.example.com:80' export http_proxy="http://<user>:/alid@proxy.example.com:80" export http_proxy=http://<user>:\/alid@proxy.example.com:80
and now
export http_proxy="http://<user>:\/alid@proxy.example.com:80"
Clint Dilks wrote:
and now
export http_proxy="http://<user>:\/alid@proxy.example.com:80
ok, i bet i know what the problem is here. the / is a stop character in UR syntax, as its a path seperatorL, used to seperate a path. I'm guessing you shoudl avoid / \ ; @ % and maybe , ? & and * in your passwords. ` ` ! # ^ ( ) - _ = + [ ] { } | ; < > should be safe. unless I"m forgetting something.
John R Pierce wrote:
Clint Dilks wrote:
and now
export http_proxy="http://<user>:\/alid@proxy.example.com:80
ok, i bet i know what the problem is here. the / is a stop character in UR syntax, as its a path seperatorL, used to seperate a path. I'm guessing you shoudl avoid / \ ; @ % and maybe , ? & and * in your passwords. ` ` ! # ^ ( ) - _ = + [ ] { } | ; < > should be safe. unless I"m forgetting something.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi this is the issue but there is a solution other than avoiding these characters URL Escaping
See http://www.december.com/html/spec/esccodes.html
So my example becomes
export http_proxy=http://<user>:%5C%2Falid@proxy.example.com:80 which works.
Thanks to all who assisted with this :)
On Tue, Jan 5, 2010 at 5:32 PM, Clint Dilks clintd@scms.waikato.ac.nz wrote:
export http_proxy=/alid@proxy.example.com:80 export http_proxy='/alid@proxy.example.com:80' export http_proxy="/alid@proxy.example.com:80" export http_proxy=\/alid@proxy.example.com:80
I have tried reporting this as http://bugs.centos.org/view.php?id=4123 but mantisbt presents the information I submitted in a way I didn't expect. If anyone can tell me how to modify the bug report to look the way I expected please let me know.
Try submitting a text file containing the lines as an attachment.
Akemi
Akemi Yagi wrote:
On Tue, Jan 5, 2010 at 5:32 PM, Clint Dilks clintd@scms.waikato.ac.nz wrote:
export http_proxy=/alid@proxy.example.com:80 export http_proxy='/alid@proxy.example.com:80' export http_proxy="/alid@proxy.example.com:80" export http_proxy=\/alid@proxy.example.com:80
I have tried reporting this as http://bugs.centos.org/view.php?id=4123 but mantisbt presents the information I submitted in a way I didn't expect. If anyone can tell me how to modify the bug report to look the way I expected please let me know.
Try submitting a text file containing the lines as an attachment.
Akemi _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Done :)
Thank you