2009/1/8 Marcin Zajaczkowski <span dir="ltr">&lt;mszpak@wp.pl&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
1. Is there something more I can do (to achieve similar to SVN centralized environment) than use SSH and remote bzr calling with bzr_ssh_path_limiter and SGUID?</blockquote><div><br>I have had limited success using bzr+https:// going through apache with config like so:<br>
==<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RewriteRule ^(.*/|)\.bzr/smart$ /opt/scmbzr/cgi-bin/bzr-smart.fcgi<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order&nbsp;&nbsp; allow,deny<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; allow from all<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # how to authenticate a user<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AuthType Basic<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AuthName &quot;Document repository&quot;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AuthUserFile /var/lib/bzrroot-authfile<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # only authenticated users may access the repository<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Require valid-user<br>
</div></div>==<br>with bzrroot-authfile:<br>==<br>username=encripted_password(I&#39;m not sure how)<br>...<br>==<br><br><b>I could not get per user config</b> <b>working</b>, but I suppose one could write a custom bzr-smart.fcgi which can do that using a access config file (used by AuthzSVNAccessFile), eg:<br>
==<br>[groups]<br>project1-readers = user1,anonymous<br>project1-committers = user2<br><br>[project1:/]<br>@project1-committers = rw<br>@project1-readers = r<br>* = r<br>==<br><br>regards<br>marius<br><br>