Menu

#58 plain password authentication with Apache

en-1.8
Fixed
nobody
None
Medium
Defect
2013-01-18
2009-08-16
Anonymous
No

Originally created by: agrin...@gmail.com
Originally owned by: cmpilato

Hi, I've been reading about the setting up the password-base authentication
with Apache as a server (as described on this page: http://svnbook.red-
bean.com/en/1.5/svn.serverconfig.httpd.html), and I spent half a night trying
to make it work..
The problem was that for some reason Apache was not finding the user file, and
printing errors in the log like:
... configuration error:  couldn't check user.  No user file?: ...

finally I've found the solution. The problem was with the configuration API
changes of Apache/2.2.11 (Unix). To make it work I had to have the following
in the httpd.conf file:

<Location /svn>
    DAV svn
    SVNPath /home/svn

    AuthName "Subversion repository"
#NOTICE THIS LINE
    AuthType Basic
    AuthBasicProvider file
    AuthUserFile /home/svn/conf/apache-auth-file

    <LimitExcept GET PROPFIND OPTIONS REPORT>
        Require valid-user
    </LimitExcept>
</Location>
#AND LOADING OF THE 3 MODULES
LoadModule   auth_basic_module        modules/mod_auth_basic.so
LoadModule   authn_file_module        modules/mod_authn_file.so
LoadModule   authz_user_module        modules/mod_authz_user.so
LoadModule   authz_host_module        modules/mod_authz_host.so
LoadModule   dir_module               modules/mod_dir.so
LoadModule   dav_module               modules/mod_dav.so

Discussion

  • Anonymous

    Anonymous - 2009-08-16

    Originally posted by: agrin...@gmail.com

    sorry, the
      #NOTICE THIS LINE
    should be one line below - it relates to
      AuthBasicProvider file
    directive

     
  • Anonymous

    Anonymous - 2010-10-15

    Originally posted by: cmpilato

    "AuthBasicProvider file" is the default for Apache.  But if a different value (outside the scope of your httpd.conf snippet) was used for the AuthBasicProvider, then the Subversion <Location> would have inherited it.  So I can see how that might be confusing and hard to diagnose.

     
  • Anonymous

    Anonymous - 2010-10-15

    Originally posted by: cmpilato

    (No comment was entered for this change.)

    Labels: Milestone-whenever

     
  • Anonymous

    Anonymous - 2011-06-28

    Originally posted by: cmpilato

    (No comment was entered for this change.)

    Owner: cmpilato

     
  • Anonymous

    Anonymous - 2013-01-18

    Originally posted by: cmpilato

    Sending        book/ch06-server-configuration.xml
    Transmitting file data .
    Committed [r4335].

    Labels: -Milestone-whenever Milestone-en-1.8
    Status: Fixed

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.