Peter Schober wrote:
* Pascal S. Clermont <pascal@xxxxxxxxxxx> [2009-07-21 21:53]:I want to secure some content from unauthorized access by using : " AuthType Basic AuthName "Authentication Required" AuthUserFile /etc/secret/auth.users Require valid-user " in one of my <virtualhost>'sI would like to know if there is a possible way for apache to auto-login anyone coming from the 192.168.1 network to a specific user? This would be great if it required 0 client-side setup ( completely transparent ) and for the 192.168.2 network a login/pass would be asked to the user.http://httpd.apache.org/docs/2.2/en/mod/core.html#satisfy "For example, if you wanted to let people on your network have unrestricted access to a portion of your website, but require that people outside of your network provide a password, you could use a configuration similar to the following: Require valid-user Order allow,deny Allow from 192.168.1 Satisfy Any"
I don't think that this is exactly what the OP wanted.With the configuration above, requests from 192.168.1.* will get through, but unauthenticated. What the OP seemed to want, is that these requests /would/ be authenticated automatically as "from user LOCAL-GUY" e.g.
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx