Testing saslauthd

This blog entry exists because there should be a document on the Internet named ‘testing saslauthd’.

<p>Cyrus-sasl comes with a test program but it is neither compiled or installed by default.  To do so, go to the source directory, e.g:</p>
<p>cyrus-sasl-2.1.1/saslauthd.</p>
<p>next, do:</p>
<p>make testsaslauthd<br />

/usr/bin/install -c saslauthd /usr/local/sbin/saslauthd

<p>or whichever options are right for you.</p>
<p>Next, run the test program specifying the unix domain socket saslauthd is using.  If it’s running like this:</p>
<p>/usr/local/sbin/saslauthd -m /var/run/saslauthd/mux -a shadow</p>
<p>you want to test like this:</p>
<p>/usr/local/sbin/testsaslauthd -u myuser -p mypassword -f /var/run/saslauthd/mux</p>
<p>If everything works, you’ll see:</p>
<p>OK “Success.”