I have create two accounts in Apache with this command :
/apache/bin/httpd -c bob svnaccess (...+enter password)
/apache/bin/httpd vins svnaccess (...+enter password)
I found the command svn log in the php script (\repos-web\open\log),
and if i add this line, the authentification on the svn server works.
$cmd .= ' --username bob --password myPassNoCrypt';
But you can understand why I don't want to use this method, or to use
"file:///" access svn. So i want to protect the log by configuration
Directory /repos-web/open with a Require valid-user. In this case, i
know that anyone with a login (apache) will be able to view the log
for all repositories.
I test a configuration with "http://" access svn ($repo = 'http://
svdos/svn';) and authentification apache only in this location
directive :
<Location /svn>
order deny,allow
deny from all
allow from 172.x.x.151 172.x.x.152 172.x.x.153
DAV svn
SVNListParentPath on
SVNParentPath D:/wamp/bin/subversion/referentiel
SVNIndexXSLT "/repos-web/view/repos.xsl"
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile bin/svnaccess
Require valid-user
</Location>
If i test to access with my browser the SVNPath (
http://svdos/svn/), i
must to authentificate with apache (because of this instruction
Require valid-user in directive <location /svn>, and with this
authentification i can access to history... it's work... until (i
think but i'm not sure) a time-out authentification maybe a cookie
expiration.
You can still password protect the log by configuring the Directory or
Location /repos-web/open with Require valid-user. Note that this will
bypass
any path-based access control so anyone with a login will be able to
view
the log for all repositories.
How i can protect the log (/repos-web/open) with the same user/pass
used in my directive <location> ?