SVN сервер на Debian c SALS

Краткая инструкция, как установить SVN сервер на Debian с использованием авторизации SALS.


sudo apt-get install libsasl2-2 libsasl2-modules sasl2-bin
sudo vim /etc/default/saslauthd
# change the row that says START=no to START=yes

cd /svn/root
sudo svnadmin create newrepo
sudo vim newrepo/conf/svnserve.conf
# insert the following
anon-access = none
auth-access = write
# realmname may not contain special chars (this includes spaces,
dashes and pretty much anything except a through z)
realm = realmname
use-sasl = true
min-encryption = 256
max-encryption = 256

sudo vim /usr/lib/sasl2/svn.conf
# this is the basic setup.. alotta settings can be used
pwcheck_method: auxprop
auxprop_plugin: sasldb
# i used /etc/svn_sasldb here
sasldb_path: /path/db_name
mech_list: DIGEST-MD5

sudo ln -s /usr/lib/sasl2/svn.conf /usr/lib/sasl2/subversion.conf
# add as many users as you need
sudo saslpasswd2 -f /path/db_name -c -u realmname username
sudo /etc/init.d/svnserve restart

# and ya done!!