Wine automatic proxy authentication?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
nuttello
Newbie
Newbie
Posts: 3
Joined: Fri Feb 06, 2009 5:31 am

Wine automatic proxy authentication?

Post by nuttello »

I'm running wine 1.1.4 and am having problems trying to run iexplore.exe from the command line.

I've installed the gecko engine already and even set the registry to look for the correct server pac file to automatically setup the proxy.

But this is where I'm stuck at where I actually need to authenticate for the proxy and I do see the 407 response for the request for authentication in the terminal window.

The question is how do I actually enter the username and password for authentication since there is no dialog box which pops up for me to do it? Is there a way to do it through the registry or some other way automatically would be even better.

Below is a partial snap of the error:
fixme:mshtml:HttpNegotiate_OnResponse (0x124b80)->(407 L"HTTP/1.1 407 Proxy Authentication Required\r\nProxy-Authenticate: NTLM\r\nProxy-Authenticate: BASIC .....
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine automatic proxy authentication?

Post by vitamin »

nuttello wrote:The question is how do I actually enter the username and password for authentication since there is no dialog box which pops up for me to do it? Is there a way to do it through the registry or some other way automatically would be even better.
Try this: http://wiki.winehq.org/FAQ#head-d582e2a ... 5621eb220f
nuttello
Newbie
Newbie
Posts: 3
Joined: Fri Feb 06, 2009 5:31 am

Post by nuttello »

I've already tried it and that doesn't work. Think it could be due to the NTLM authentication part that's tripping me up. Thanks though.
ghotir
Newbie
Newbie
Posts: 2
Joined: Thu Mar 05, 2009 2:25 pm

Re: Wine automatic proxy authentication?

Post by ghotir »

I looked over the information in the link, and didn't see anything about setting up authentication. I've searched all over the net, and can't seem to find the simple trick to provide a username and password so that I can be authenticated.

Does anyone know the trick?
User avatar
Daemon
Level 4
Level 4
Posts: 101
Joined: Wed Nov 12, 2008 2:24 pm

Re: Wine automatic proxy authentication?

Post by Daemon »

ghotir wrote:
I looked over the information in the link, and didn't see anything about setting up authentication. I've searched all over the net, and can't seem to find the simple trick to provide a username and password so that I can be authenticated.

Does anyone know the trick?
You could install the native wininet.dll through the new & updated winetricks and see if that does the trick. savelinkas http://www.kegel.com/wine/winetricks
ghotir
Newbie
Newbie
Posts: 2
Joined: Thu Mar 05, 2009 2:25 pm

Re: Wine automatic proxy authentication?

Post by ghotir »

Daemon wrote: You could install the native wininet.dll through the new & updated winetricks and see if that does the trick. savelinkas http://www.kegel.com/wine/winetricks
It appears that winetricks attempts to download stuff from the internet, and I don't see a way to set my proxy for it. Since the problem is authentication through a proxy, I don't think this will help. Also it doesn't appear to be a problem with wininet.dll. The dll appears to be working fine, the problem is that I don't have a way to give it a username and password. In windows it gets that information through system calls. It might be trying to do that from my WINE as well, but my linux credentials don't have internet privileges. I need to use my windows domain credentials.
User avatar
FatButtLarry
Level 3
Level 3
Posts: 70
Joined: Sat Feb 23, 2008 1:08 pm

Wine automatic proxy authentication?

Post by FatButtLarry »

I assume you've tried "username:[email protected]" already.

I think you hit the nail on the head with NTLM.  Since it uses windows
authentication, you might be stuck.  If the proxy supports netbios,
you could try to map a network drive to it through the cmd.exe
interpreter.

I'm not sure if IETab for Firefox works in Wine or if it even can pass
in its proxy settings, but may be worth a try.

A quick search shows it probably doens't work:
http://www.mozdev.org/pipermail/ietab/2 ... 00074.html

Next idea possible the IEAK (IE admin kit). Looks like it can deploy
IE8 proxy settings, but no idea about IE6. I also don't know if the
kit itself is compatible with Wine.

Lastly, you've probably already stumbled upon this, but it has code
snippets. If you could get this to run in a wine compatible windows
language (vbscript, vb6?) then execute iexplore perhaps it would
retain the settings. A lot of work though for a missing dialog box.

-Tres



On Fri, Mar 6, 2009 at 4:28 PM, ghotir <[email protected]> wrote:
Daemon wrote:
  You could install the native wininet.dll through the new & updated winetricks and see if that does the trick. savelinkas http://www.kegel.com/wine/winetricks
It appears that winetricks attempts to download stuff from the internet, and I don't see a way to set my proxy for it.  Since the problem is authentication through a proxy, I don't think this will help.  Also it doesn't appear to be a problem with wininet.dll.  The dll appears to be working fine, the problem is that I don't have a way to give it a username and password.  In windows it gets that information through system calls.  It might be trying to do that from my WINE as well, but my linux credentials don't have internet privileges.  I need to use my windows domain credentials.





--
- [email protected]
User avatar
FatButtLarry
Level 3
Level 3
Posts: 70
Joined: Sat Feb 23, 2008 1:08 pm

Wine automatic proxy authentication?

Post by FatButtLarry »

On Fri, Mar 6, 2009 at 7:17 PM, A. Tres Finocchiaro
<[email protected]> wrote:
I assume you've tried "username:[email protected]" already.

I think you hit the nail on the head with NTLM.  Since it uses windows
authentication, you might be stuck.  If the proxy supports netbios,
you could try to map a network drive to it through the cmd.exe
interpreter.

I'm not sure if IETab for Firefox works in Wine or if it even can pass
in its proxy settings, but may be worth a try.

A quick search shows it probably doens't work:
http://www.mozdev.org/pipermail/ietab/2 ... 00074.html

Next idea possible the IEAK (IE admin kit).  Looks like it can deploy
IE8 proxy settings, but no idea about IE6.  I also don't know if the
kit itself is compatible with Wine.

Lastly, you've probably already stumbled upon this, but it has code
snippets.  If you could get this to run in a wine compatible windows
language (vbscript, vb6?) then execute iexplore perhaps it would
retain the settings.  A lot of work though for a missing dialog box.

-Tres



On Fri, Mar 6, 2009 at 4:28 PM, ghotir <[email protected]> wrote:
Daemon wrote:
  You could install the native wininet.dll through the new & updated winetricks and see if that does the trick. savelinkas http://www.kegel.com/wine/winetricks
It appears that winetricks attempts to download stuff from the internet, and I don't see a way to set my proxy for it.  Since the problem is authentication through a proxy, I don't think this will help.  Also it doesn't appear to be a problem with wininet.dll.  The dll appears to be working fine, the problem is that I don't have a way to give it a username and password.  In windows it gets that information through system calls.  It might be trying to do that from my WINE as well, but my linux credentials don't have internet privileges.  I need to use my windows domain credentials.





--
- [email protected]
Sorry, forgot the last link:

http://msdn.microsoft.com/en-us/library ... S.85).aspx


--
- [email protected]
Locked