[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: No authentication for localhost, basic authentication for others.

From: Alex <xlegion_at_gmail.com>
Date: 2006-04-06 21:44:52 CEST

On 4/6/06, Greg Martyn <greg.martyn@gmail.com> wrote:
>
> I haven't received an answer to my question.. does anyone know the
> right place to ask?
>
> The original question:
> -----------------------------------------
> I'm trying to require users to authenticate against a passwd file
> unless they are from localhost (or 192.168.0.113). I have no problem
> with users from localhost doing whatever they want to the files in
> svn.
>
> With the AuthzSVNAccessFile line commented out, everyone gets in
> without getting asked to login. With it uncommented, everyone has to
> authenticate (even from localhost). How can I get it to ask for a
> password when not from localhost and not ask for a password when from
> localhost?
>
> Thanks,
> Greg Martyn
> - Hide quoted text -
>
>
> <Location /svn>
> DAV svn
> SVNParentPath /var/www/SVNRepositories
>
> ModMimeUsePathInfo On
> SVNAutoversioning On
>
> # Require SSL connection for password protection.
> SSLRequireSSL
>
> # our access control policy
> #AuthzSVNAccessFile /etc/httpd/conf.d/svnaccess
>
> AuthType Basic
> AuthName "Subversion repository"
> AuthUserFile /etc/httpd/conf.d/svnpasswd
>
>
> Require valid-user
> Allow from 192.168.0.113 127.0.0.1
> Satisfy Any
> </Location>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
How about using two locations? One for local users and one for external
users.

<Location /svn>
  DAV svn
  SVNParentPath /var/www/SVNRepositories
  ...
  Order deny,allow
  Deny from all
  Allow from localhost
</Location>

<Location /svnext>
  DAV svn
  SVNParentPath /var/www/SVNRepositories
  ...
  Order allow, deny
  Allow from .whatever.com
</Location>
Received on Thu Apr 6 21:46:14 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.