[Bug 227513] New: Missing username/password in $http_proxy and friends
https://bugzilla.novell.com/show_bug.cgi?id=227513 Summary: Missing username/password in $http_proxy and friends Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mludvig@logix.net.nz QAContact: qa@suse.de I need to supply username and password for my webproxy. Once set in Yast Proxy module it's supposed to be exported to http_proxy (and https_proxy, ftp_proxy) environment variables. Although the proxy hostname and port are exported as expected the username and password part is missing. I.e. instead of http_proxy=http://user:password@proxyhost:3128 I get only http_proxy=http://proxyhost:3128 which is of not much use for programs like wget. Indeed I set it up manually in .bashrc but I believe it should be done by Yast for me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |mludvig@logix.net.nz ------- Comment #1 from mhorvath@novell.com 2006-12-11 15:35 MST ------- Please attach your yast log files. http://en.opensuse.org/Bugs/YaST Thank you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513 mludvig@logix.net.nz changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |227511 Status|NEEDINFO |ASSIGNED Info Provider|mludvig@logix.net.nz | ------- Comment #2 from mludvig@logix.net.nz 2006-12-11 16:19 MST ------- How about trying it yourself instead of asking for needless yast logs, hm? It's perfectly reproducible and not difficult at all to verify ;-) You don't even need a proxy that requires authorization, all you have to do is to check the env variable after setting the proxy in YaST (and obviously logout && login again). Anyway, it appears that login/password is not available to ordinary users as yet therefore making this bug a dependency to bug #227511 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513 mludvig@logix.net.nz changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn|227511 | ------- Comment #3 from mludvig@logix.net.nz 2006-12-11 16:39 MST ------- Actually it isn't a dependency because $http_proxy doesn't carry the login and password for root either. I suggest for /etc/profile.d/profile.sh around line 47 and below to check ~/.curlrc to see if there is a password available and pass it to $http_proxy if it was. That way even programs like wget that are not based on curl will have enough information to reach the net. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |kmachalkova@novell.com |screening@forge.provo.novell| |.com | Status|ASSIGNED |NEW -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513 kmachalkova@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Component|Network |Network Product|openSUSE 10.2 |openSUSE 10.3 Resolution| |LATER Version|Final |Alpha 0plus ------- Comment #4 from kmachalkova@novell.com 2007-02-09 14:36 MST ------- -> 10.3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c5 --- Comment #5 from Steve Price <linux@sdprice.plus.com> 2007-09-06 03:34:48 MST --- Created an attachment (id=162256) --> (https://bugzilla.novell.com/attachment.cgi?id=162256) y2logs. yast2 proxy screenshot, /etc/sysconfig/proxy file -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c6 Steve Price <linux@sdprice.plus.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |linux@sdprice.plus.com Status|RESOLVED |REOPENED Found By|Other |Beta-Customer Priority|P5 - None |P3 - Medium Resolution|LATER | Version|Alpha 0plus |Beta 3 --- Comment #6 from Steve Price <linux@sdprice.plus.com> 2007-09-06 03:38:42 MST --- This bug appears to have crept back in to beta3 - beta2 seemed to work fine. To reiterate - using Yast2 to set the proxy settings does *not* save/set the username and password in /etc/sysconfig/proxy. This causes things like zypper to fail on authentication. If I manually set the HTTP_PROXY variable (adding the user/password) then all is well. I have attached my y2 logs, a screen shot, and the resultant /etc/sysconfig/proxy file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c7 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |jkupec@novell.com --- Comment #7 from Katarina Machalkova <kmachalkova@novell.com> 2007-09-06 11:23:55 MST --- Steve, proxy username and password were never stored in /etc/sysconfig/proxy file. Instead, they were written into /root/.curlrc file, but with incorrect syntax, so I don't quite understand how it could possibly work in beta2 :) This incorrect .curlrc issue should be now fixed (bug #305163), but I don't know if zypper checks this file for user/password. Jano, can you comment? But please note that this bug is about something different - about user and password being stored in root's $HOME only and not being accessible to normal users. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c8 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|jkupec@novell.com | --- Comment #8 from Ján Kupec <jkupec@novell.com> 2007-09-07 02:04:40 MST --- (In reply to comment #7 from Katarina Machalkova)
This incorrect .curlrc issue should be now fixed (bug #305163), but I don't know if zypper checks this file for user/password. Jano, can you comment?
Yes, zypper (libzypp) reads it from $HOME/.curlrc. You can also specify it in the repository URL using URL parameters "proxyuser" and "proxypassword" (this actually takes preference over reading .curlrc). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c9 --- Comment #9 from Katarina Machalkova <kmachalkova@novell.com> 2007-09-10 04:25:50 MST --- I've open a new bug #309139, as per comment #6, because changing .curlrc syntax to a valid one (bug #305163) invalidated the way how libzypp parses its data -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c10 Steve Price <linux@sdprice.plus.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |laptop@chappell-family.com Version|Beta 3 |RC 1 --- Comment #10 from Steve Price <linux@sdprice.plus.com> 2007-09-21 02:57:14 MST --- RC1 is showing new problems related to zypper proxy authentication. The .curlrc file has the correct format, and curl itself works with no problems (also, the proxy environment variables are set correctly). Unfortunately, zypper now refuses to authenticate with the proxy. We have a workaround - we have set up Squid so that squid does the authentication with the external proxy. We then set the local proxy settings to point at Squid with no authentication required. This allows zypper to work correctly. I have attached a tarball containing: * screenshot of yast failing to add external repository + curl managing to download * All the Yast logs * zypper logs while failing to add repository * my .curlrc (which is correct) * tcpdump log of zypper attempting to authenticate
From everything I've seen, it looks to me like zypper attempts to get the xml file via the proxy; the proxy requests authentication; zypper gives up (i.e. does not send proxy authentication response) thinking it's got a permanent error (?)
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c11 --- Comment #11 from Steve Price <linux@sdprice.plus.com> 2007-09-21 02:59:27 MST --- Created an attachment (id=173805) --> (https://bugzilla.novell.com/attachment.cgi?id=173805) zypper logs - fails to authenticate with proxy -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c12 --- Comment #12 from Katarina Machalkova <kmachalkova@novell.com> 2007-09-24 05:39:37 MST --- Please refer to bug #309139 for any issue related to libzypp/zypper that has something to do with proxy authentication. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c13 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Component|Network |Network Info Provider| |zoz@novell.com Product|openSUSE 10.3 |openSUSE 11.0 Version|RC 1 |unspecified --- Comment #13 from Katarina Machalkova <kmachalkova@novell.com> 2007-09-26 01:40:52 MST --- Christian, can new variables be added to /etc/sysconfig/proxy, e.g. PROXY_USER, PROXY_PASSWORD ? (of course, some md5 hash of the password). So that these can be later exported into environment and made accessible to all programs, not just curl (as they are now). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c14 Christian Zoz <zoz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zoz@novell.com Info Provider|zoz@novell.com |ro@novell.com --- Comment #14 from Christian Zoz <zoz@novell.com> 2007-09-26 03:42:12 MST --- Oh, i don't mind, but /etc/sysconfig/proxy is not in my working scope. This file (or better the template /var/adm/fillup-templates/sysconfig.proxy) comes from package aaa_base and the maintainer is Rudi. Maybe also ask the maintainers of proxies. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c15 --- Comment #15 from Stephan Kulow <coolo@novell.com> 2007-10-21 06:44:57 MST --- What info is Rudi supposed to provide? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c16 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro@novell.com AssignedTo|kmachalkova@novell.com |ro@novell.com Status|NEEDINFO |ASSIGNED Info Provider|ro@novell.com | --- Comment #16 from Ruediger Oertel <ro@novell.com> 2007-10-21 09:16:43 MST --- well, the bug should be assigned to me and needinfo maintainer(squid) ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |kssingvo@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c18 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |kmachalkova@novell.com --- Comment #18 from Ruediger Oertel <ro@novell.com> 2007-10-31 11:11:22 MST --- my fault, brain twisted ... adding variables to /etc/sysconfig/proxy can only help if someone uses them. HTTPS_PROXY/FTP_PROXY are used by more applications, curl is just one of them. But I don't know of any application that would read USER/PASSWD from the environment, so an addition like this would only make sense if anyone was willing to add patches to at least the most common tools and browsers (mozilla,w3m,wget,curl,...) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c19 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|kmachalkova@novell.com | --- Comment #19 from Katarina Machalkova <kmachalkova@novell.com> 2007-11-06 02:56:03 MST --- wget certainly accepts http_proxy env. variable in the form http://user:password@proxy.somewhere.net:3128 But that's the only app I know of (which does not mean that other apps do not support username and password in $http_proxy). Maybe the original requester could give us more information ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513 User ro@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=227513#c20 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |kmachalkova@novell.com --- Comment #20 from Ruediger Oertel <ro@novell.com> 2008-11-05 09:24:21 MST --- what is the current status ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513 User kmachalkova@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=227513#c21 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|kmachalkova@novell.com | --- Comment #21 from Katarina Machalkova <kmachalkova@novell.com> 2009-01-19 05:31:08 MST --- Overlooked this one, I'm sorry.
But I don't know of any application that would read USER/PASSWD from the environment, so an addition like this would only make sense if anyone was willing to add patches to at least the most common tools and browsers (mozilla,w3m,wget,curl,...)
Here are some apps that are able to read $http_proxy env. variable with user & password: * wget, lynx, (e)links, Konqueror * Firefox - but only after installing an extension: https://addons.mozilla.org/cs/firefox/addon/3896 As for the other apps, it is more easy to find out what does not work with $http_proxy with user/passwd (mplayer, git,...) than something that does :( Certainly YaST and libzypp (which is curl-based) ignore $http_proxy and read sysconfig and .curlrc directly. Maybe it makes sense to file a feature request. There already is one $http_proxy-related (FaTE #302377) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=227513 User ro@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=227513#c22 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FEATURE --- Comment #22 from Ruediger Oertel <ro@novell.com> 2009-02-09 07:06:43 MST --- okay, closing here, rest in fate. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com