Ok. Here's how I reproduced the issue I'm having on sample-server and
sample-client distributed with Cyrus SASL source, under /sample. I
installed Cyrus SASL with the commands below.

cd <sasl_dir>
bootstrap
./configure
sudo make
sudo install

I created the sample-client and sample server by these;

cd sample
make clean
make
make sample-server
make sample-client

Then, all I did was running the two in different terminals using the
commands below.

./sample-server -m ANONYMOUS -i local=127.0.0.1;5555,remote=127.0.0.1;5555
-s http
./sample-client -m ANONYMOUS -i local=127.0.0.1;5555,remote=127.0.0.1;5555
-s http

Copy the line sample-server prints(i.e. the one starting with "S: " and
paste it to sample-client. It will give a SASL_NOMECH (with integral value
-4) error.

Same goes with my code on https://github.com/ilimugur/sasltrial . Even
though I send a hard-coded list consisting only of ANONYMOUS,
sasl_client_start returns SASL_NOMECH.

- İlim




2013/7/28 Jan Schaumann <[email protected]>

> Vinod Kone <[email protected]> wrote:
>
> >---------- Forwarded message ----------
> >From: ?lim U?ur <[email protected]>
> >Date: 2013/7/28
> >Subject: SASL Empty Mechlist Issue(Ubuntu Desktop)
> >To: [email protected]
>
> > I am currently trying to implement a sample client-server code that does
> > ANONYMOUS authentication on my ubuntu(not a server) localhost. However,
> > sasl_listmech() returns an empty list on the server side, and even if I
> > send a hard-coded list(i.e. "ANONYMOUS") sasl_client_start() returns
> > SASL_NOMECH. Any ideas on how I can fix this?
>
> I suspect that this has to do with the SASL installation on the host.
> See
> http://lists.andrew.cmu.edu/pipermail/cyrus-sasl/2012-November/002557.html
> for a similar issue.  I'll try to recreate the problem, but maybe try to
> run pluginviewer to ensure that the correct SASL plugins can be found.
>
> -Jan
>

Reply via email to