Proxy authentication error

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
antmon
Posts: 130
Joined: 26. Nov 2009, 16:49

Proxy authentication error

Post by antmon »

Hello!
I am trying to get slap-get to update a machine i have at work. It's behind a proxy. My problem is with the authentication. The username is in the form of user@name:passwd. I tried to escape the @ (\@) but no good. Can you help me.
Thanks Guys!
Image
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Proxy authentication error

Post by gapan »

How do you specify the proxy? Did you read this? http://software.jaos.org/git/slapt-get/ ... l#slgFAQ24
Image
Image
User avatar
antmon
Posts: 130
Joined: 26. Nov 2009, 16:49

Re: Proxy authentication error

Post by antmon »

Hi gapan!
Yes i did. What i'm doing is this:
export http_proxy://user@name:passwd@host:port
Image
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Proxy authentication error

Post by gapan »

Try using:

Code: Select all

export http_proxy://user%40name:passwd@host:port
Image
Image
User avatar
antmon
Posts: 130
Joined: 26. Nov 2009, 16:49

Re: Proxy authentication error

Post by antmon »

Tryed it. No result. If i escape the '@' and then try the update i get:
# slap-get -u
...Failed to download: Couldn't connect to server
# echo $http_proxy
http://user@name:passwd@host:port
With your suggestion i get:
# slap-get -u
...Failed to download: HTTP response code said error
# echo $http_proxy
http://user%40name:passwd@host:port
Image
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Proxy authentication error

Post by gapan »

:?

The problem is probably that as soon as the first @ is reached in the http_proxy, the system assumes that everything after it is host:port, which in your case isn't. Try putting the username in quotes, but if you can the best thing to do is to create a new username without a @ in it.
Image
Image
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Proxy authentication error

Post by JRD »

I think he cannot do it. I'm sure that the username is an email address. I already had this problem once when trying to connect from a Linux at work. I'm also interresting in a fix/resolution :)
Image
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Proxy authentication error

Post by gapan »

Did you notice this in the slapt-get faq?
If you are using ~/.netrc, libcurl automatically picks up your preferences.
See the netrc(5) manpage for more information.
Image
Image
User avatar
antmon
Posts: 130
Joined: 26. Nov 2009, 16:49

Re: Proxy authentication error

Post by antmon »

Still have the problem. I would change it but the username it's company issued.
I recall that with a ubuntu server that i installed for one of my colleges he accepted the username.
I just have installed Salix Core. Does it make any diference?
Image
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Proxy authentication error

Post by gapan »

No, I don't think so. Did you try that ~/.netrc thing? Should be /root/.netrc of course for slapt-get.
Image
Image
Post Reply