You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by jr...@lexmark.com on 2003/09/12 15:01:24 UTC

Authentication

Hello.

I'm pretty much new with Subversion and Apache.  Please bear with me.

I was able to setup my Subversion server and I want to limit access to my
repository
to some users.  I added the following lines in the httpd.conf file:

<Directory /sample/path/to/my/repository>
    AuthType Basic
    AuthName "Restricted Area.  Authorized Personnel Only."
    AuthUserFile /path/to/my/password/file
    Require valid-user
</Directory>

Then I restarted apache (apachectl restart), but when I tried to access the
repository,
no authentication occurred.  Did I miss something?

Then I also created .htaccess file to the repository directory and added
the following lines
to the httpd.conf file:

<Directory />
    AllowOveride AuthConfig
</Directory>

Then restarted apache, but it still doesn't work.  Can somebody figure out
what went wrong?

Sincerely,
Jerry




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Authentication

Posted by Mukund <mu...@tessna.com>.
On Fri, Sep 12, 2003 at 11:01:24AM -0400, jrodrigu@lexmark.com wrote:
> to some users.  I added the following lines in the httpd.conf file:
> 
> <Directory /sample/path/to/my/repository>
>     AuthType Basic
>     AuthName "Restricted Area.  Authorized Personnel Only."
>     AuthUserFile /path/to/my/password/file
>     Require valid-user
> </Directory>
> 

As Sussman says, this has to be a <Location> block instead of a
<Directory> block as the directory is accessed outside Apache by the
Subversion libraries. Besides, this is not what you want anyway.
What you want is to set access control over repository paths,
and for that, use <Location> along with mod_authz_svn.
For information on how to use mod_authz_svn,
read subversion/mod_authz_svn/INSTALL

Please read the Subversion Guide and follow it.

-- 

Mukund

The very powerful and the very stupid have one thing in common.  Instead of
altering their views to fit the facts, they alter the facts to fit their
views ... which can be very uncomfortable if you happen to be one of the
facts that needs altering.
                -- Doctor Who, "Face of Evil"


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Authentication

Posted by Ben Collins-Sussman <su...@collab.net>.
jrodrigu@lexmark.com writes:

> <Directory /sample/path/to/my/repository>
>     AuthType Basic
>     AuthName "Restricted Area.  Authorized Personnel Only."
>     AuthUserFile /path/to/my/password/file
>     Require valid-user
> </Directory>

Were you going to activate mod_dav_svn in that block?  And why isn't
it a <Location> block, like all the docs show?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org