0

Here is my study case:

browser ---> apache proxy ---> ISA server ---> internet

The ISA server requires an authentication.

The issue is to allow HTTPS through the two proxies.

A configuration that works with HTTP is something like this: (yes, I don't want to use ProxyPass but ProxyRequests)

<virtualhost *:8080>
 ...
 SetEnv auth-proxy-chain on
 ...
 ProxyRequests On
 ProxyRemote * http://isaproxy:80
 ...
 <proxy *>
  AuthName "ISA server auth"
  AuthType Basic
  [here a module to authenticate]
  require valid-user
  Allow from all
 </proxy> 
 ...
 </virtualhost>

The user can authenticate on the apache proxy then the authentication chain is sent to the ISA server that allows the HTTP trafic.

But, while the browser switchs to HTTPS, the ISA server "speaks" NTLM and breaks the authentication on the apache proxy.


If I try to use the SSPI module (ntlm) with something like this:

blablabla

  <proxy *>
    AuthName "ISA server auth"
    AuthType ntlm
    [ SSPI stuff ]
    Require valid-user
    Allow from all
   </proxy>

The apache server reject the authentication (or the ISA server I don't really know).


I use wireshark to look at the nominal process while using directly the ISA server as proxy. The first auth-chain is a BASIC type then it switchs to NTLM (and the challenge continues with NTLM).

How should I configure apache that it transfers the NTLM authentication to the ISA proxy without checking it(*)? Or to rewrite headers to force BASIC authentication?

(*) It seems not to be as easy as it seems...

Kenny Rasschaert
  • 8,925
  • 3
  • 41
  • 58
trotzim
  • 1
  • 1
  • 1
  • Why are you using `ProxyRequests`? Why are you authenticating on the Apache server at all? – Shane Madden Dec 30 '11 at 17:17
  • I just want to use apache as a forward proxy. If I don't put some authentication on the apache server I can't forward user auth to the ISA server; Or do i miss something ? – trotzim Jan 02 '12 at 14:07

1 Answers1

1

If you don't do authentication on the proxy, then the normal authentication process will happen between the ISA server and the client.

If that would work for you, then that's the suggestion that I'd make; there's really no way to double-authenticate in the same headers to both different servers unless the servers are both doing basic authentication with the same credentials.

Shane Madden
  • 112,982
  • 12
  • 174
  • 248