On 8/17/06, <b class="gmail_sendername">Jonathan Bailey</b> <<a href="mailto:jbailey@co.marshall.ia.us">jbailey@co.marshall.ia.us</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It doesn't seem obvious, but how can I make apache send authentication for<br>x.y.z.*, but not anything else? I'm passing REMOTE_USER to Zope via FastCGI<br>and I'm doing NTLM auto login internally, but do not want anyone prompted
<br>for a username externally...<br></blockquote></div><br><br>I think you can get away with something like this (from memory, not tested):<br><br><Limit GET POST PUT ><br>Order allow,deny<br>allow from all<br>deny from
<a href="http://192.168.0.0/255.255.0.0">192.168.0.0/255.255.0.0</a> # Your local net here<br>AuthName "test"<br>AuthType Basic<br>AuthUserFile /path/to/.htpasswd<br>Require valid-user<br>Satisfy any<br></Limit>
<br>