Where is proxy authentication stored

In OpenSUSE 12.2 in the proxy configuration dialog there is the possibility to enter a username and a password for proxy authentication. Does anyone know, where this information is stored in the system?

I know of the possibility to supply those directly in the http_proxy variable, just like so

export http_proxy=http://user:password@hostname:port

But in this case the password is human readable in an environment variable which kinda sucks. So, I really like the OpenSUSE method, but I’d like to know, what’s going on behind the curtain. Where is the password stored?

Cheers, bselu

You can go to “tools” → Security (tab)–> click “Custom level” and the last option should be “User Authentication” you could click prompt for user name and password… or you could delete your saved passwords in the general tab…

Setting the proxy in KDE or GNOME will store the credentials in kwallet, resp. gnome-keyring, depending on whether they’re configured.

Thanks for your answers, guys.

What I didn’t mention in my query was, that I’m setting the proxy stuff inside Yast, not within KDE or Gnome. So the question is, where is Yast storing the User/Password-information on the system? It’s not in the environment variable $http_proxy and it’s also not in the /etc/passwd resp. shadow. But where is it?

Cheers, bselu

Perhaps in “/etc/sysconfig/proxy” ?

Nope, this config file only sets the {HTTP|HTTPS|FTP}_PROXY variables and there is no user/password info there.

Any other ideas?

/root/.curlrc

Yes! That’s it! Thank you very much, isemionov!

Now I’m wondering a bit, why this works for many programs (zypper, eclipse, etc.) and for some it doesn’t (wget). Is it because they use libcurl?

Cheers, bselu

the developer(s) of each program decides how to use and set proxy (if it is supported at all).
For wget see .wgetrc or /etc/wgetrc and define here your proxy server. If necessary there are parameters --proxy-user= --proxy-passwd=
For more info:

man wget