Could Not Obtain the List of SASL Mechanisms
During initial installation of a subversion repository server you may run into issues with authentication methods. This issue is probably related to not having a package installed that needs to be for your authentication to function properly.
Error Received in TortoiseSVN: Could not obtain a list of SASL mechanisms
Also note the /etc/sasl2/svn.conf file and the repo/conf/svnserve.conf configuration files to get a clear picture of the SVN repository configuration.
- pwcheck_method: auxprop
- auxprop_plugin: sasldb
- sasldb_path: /var/www/sasldb
- mech_list: DIGEST-MD5
- anon-access = none
- auth-access = write
- realm = doc-control
- use-sasl = true
- min-encryption = 128
- max-encryption = 256
Notice in the svn.conf configuration file the mech_list option is set to DIGEST-MD5. I noticed that I didn’t have the proper SASL package installed when I started troubleshooting. So I issued the command below to install the cyrus-sasl-md5 package.
Install cyrus-sasl-md5 Via YUM:
- yum install cyrus-sasl-md5
Obviously if you don’t already have cyrus-sasl installed then issuing the above command will install that as well. Do not remove authentication if you run into issues because in the long run you will cause yourself more issues than you will by getting this working the incorrect way quickly.