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
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: agrin...@gmail.com
sorry, the
#NOTICE THIS LINE
should be one line below - it relates to
AuthBasicProvider file
directive
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
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.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
(No comment was entered for this change.)
Labels: Milestone-whenever
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
(No comment was entered for this change.)
Owner: cmpilato
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
Sending book/ch06-server-configuration.xml
Transmitting file data .
Committed [r4335].
Labels: -Milestone-whenever Milestone-en-1.8
Status: Fixed