Skip to contentSkip to conversation

NTLM proxy problem.

Openvpn-devel inode 2 participants 3 messages Mar 28, 2006 – Apr 1, 2006

lore
Share & tools
lore

inode

author
#0 lore raw

Hi all,

I'm doing some test with openvpn, and I saw some problem using NTLM auth proxy.

I tested the software on a ISA server and all work fine, the problem is using a squid proxy with NTLM.

I recognized 2 different problem:

- The proxy authorization phase (one, two and three) are done all on the same connection, but the "Connection: keep-alive" or "Proxy-connection: keep-alive" are not set on the request. Some kind of proxy (like squid) after the first request drop the connection, and openvpn doesn't do another connect.

- NTLM domain, actualy on openvpn config file the user can't set the domain of the credentials sent to the proxy. An Microsoft ISA server will have a "default domain" to try the authentication, but that doesn't mean that "default domain" will be the right one... Also on squid the domain is required and a null domain will be refused.

I hope these info will help you to fix the authentication and made openvpn more reliable.

Cheers

inode

#1 lore raw
Quoted 6 lines · inode

I'm doing some test with openvpn, and I saw some problem using NTLM auth proxy.

I tested the software on a ISA server and all work fine, the problem is using a squid proxy with NTLM.

I only tested NTLM against Microsoft ISA Server.

Quoted 5 lines

- NTLM domain, actualy on openvpn config file the user can't set the domain of the credentials sent to the proxy. An Microsoft ISA server will have a "default domain" to try the authentication, but that doesn't mean that "default domain" will be the right one... Also on squid the domain is required and a null domain will be refused.

OK, fair enough :-)

can you let me know exactly how you compiled the NTLM support into Squid so that I can reproduce this. Are you linking against SaMBa - and if so then which version?

thanks,

William

author
#2 lore raw

The squid has been compiled with the kerberos support and samba 3 (latest version) is used as an external authenticator. You can find in this link a configuration similar to myne (this link if for gentoo, but I hope that you will not have problem to compile or configure it. If you got one, just write me directly): http://mkeadle.org/?p=13

For your test you can also use your isa server, but the domain in NTLM packets must be set.

The faster way that I have identified to resolve this problem is modify the code of the function ntlm_phase_3 adding a search of "\" in the username and if exist set the first part of the username to domain and the second part as the username. In this way you will not have to modify the proxy data structure and also you will fix the problem under a authenticator with multiple domains.

For the first problem exposed the faster way if just add a connection keep alive, the second it's add to the proxy routines to undestand if the connection has been closed and in this case open a newone.

Thank you for the faster reply.

inode

Quoted 27 lines · William Preston
Quoted 6 lines · inode

I'm doing some test with openvpn, and I saw some problem using NTLM auth proxy.

I tested the software on a ISA server and all work fine, the problem is using a squid proxy with NTLM.

I only tested NTLM against Microsoft ISA Server.

Quoted 5 lines

- NTLM domain, actualy on openvpn config file the user can't set the domain of the credentials sent to the proxy. An Microsoft ISA server will have a "default domain" to try the authentication, but that doesn't mean that "default domain" will be the right one... Also on squid the domain is required and a null domain will be refused.

OK, fair enough :-)

can you let me know exactly how you compiled the NTLM support into Squid so that I can reproduce this. Are you linking against SaMBa - and if so then which version?

thanks,

William