<div dir="ltr">Hey Dan,<div>Thanks for the inputs. I have the sasldb folder (I presume sasldb library is something different. If yes, where do I find this) inside the cyrus-sasl installation folder. The contents of sasldb folder are as below:</div><div>/sasldb$ ls -lrt<br></div><div><div>total 176</div><div>-rw-rw-r-- 1 cisco cisco  4750 Jan 27  2012 sasldb.h</div><div>-rw-rw-r-- 1 cisco cisco  2527 Jan 27  2012 NTMakefile</div><div>-rw-rw-r-- 1 cisco cisco  2606 Jan 27  2012 Makefile.am</div><div>-rw-rw-r-- 1 cisco cisco  3882 Jan 27  2012 db_none.c</div><div>-rw-rw-r-- 1 cisco cisco  9451 Jan 27  2012 db_ndbm.c</div><div>-rw-rw-r-- 1 cisco cisco  9366 Jan 27  2012 db_gdbm.c</div><div>-rw-rw-r-- 1 cisco cisco  7235 Jan 27  2012 allockey.c</div><div>-rw-rw-r-- 1 cisco cisco 12505 Oct 12  2012 db_berkeley.c</div><div>-rw-rw-r-- 1 cisco cisco 19194 Nov  6  2012 Makefile.in</div><div>-rw-rw-r-- 1 cisco cisco 14104 May  9 16:17 db_none.o</div><div>-rw-rw-r-- 1 cisco cisco 18533 May 18 14:12 Makefile</div><div>-rw-r--r-- 1 root  root  31336 May 18 14:12 allockey.lo</div><div>-rw-r--r-- 1 root  root  14136 May 18 14:12 db_none.lo</div><div>-rw-r--r-- 1 root  root    600 May 18 14:12 <a href="http://libsasldb.la">libsasldb.la</a></div></div><div><br></div><div>I have configured using </div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">--with-dblib=BERKELEY as well..didn't give me any issues. Initially, I had used '</span><span style="font-size:12.8px">--with-dbpath=/etc/sasldb2', but later understood that this cannot be used for MD5 auth.</span><div><span style="font-size:12.8px"><br></span><div><span style="font-size:12.8px">However, 'pluginviewer -a' gives none.</span></div><div><div><div><span style="font-size:12.8px">dd17-ubuntu-okale:/usr/local/sbin$ pluginviewer -a</span></div><div><span style="font-size:12.8px">Installed and properly configured auxprop mechanisms are:</span></div><div><span style="font-size:12.8px"><none></span></div></div><div><br></div><div><br></div><div>The ldd on pluginviewer looks like this:</div><div>dd17-ubuntu-okale:/usr/local/sbin$ ldd pluginviewer </div><div><span style="white-space:pre">    </span>linux-vdso.so.1 =>  (0x00007ffcc87e3000)</div><div><span style="white-space:pre">  </span><span style="background-color:rgb(255,255,0)">libsasl2.so.3 => /usr/local/lib/libsasl2.so.3 (0x00007f9f3a2e4000)</span></div><div><span style="white-space:pre">      </span>libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9f39f1a000)</div><div><span style="white-space:pre">  </span>libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9f39d16000)</div><div><span style="white-space:pre">        </span>/lib64/ld-linux-x86-64.so.2 (0x00007f9f3a501000)</div><div><br></div><div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">The ldd on my memcached binary looks like this:</span><br></div><div><span style="text-align:start;text-indent:0px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><div style="background-color:rgb(255,255,255)">dd17-ubuntu-okale:~/Downloads/memcached-1.5.7$ ldd memcached</div><div style="background-color:rgb(255,255,255)"><span style="white-space:pre">     </span>linux-vdso.so.1 =>  (0x00007ffd6bfb8000)</div><div style="background-color:rgb(255,255,255)"><span style="white-space:pre">      </span>libevent-2.0.so.5 => /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5 (0x00007f270c40e000)</div><div><span style="background-color:rgb(255,255,255);white-space:pre">    </span><span style="background-color:rgb(255,255,0)">libsasl2.so.3 => /usr/local/lib/libsasl2.so.3 (0x00007f270c1f1000)</span></div><div style="background-color:rgb(255,255,255)"><span style="white-space:pre">  </span>libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f270bfd4000)</div><div style="background-color:rgb(255,255,255)"><span style="white-space:pre">  </span>libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f270bc0a000)</div><div style="background-color:rgb(255,255,255)"><span style="white-space:pre">      </span>libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f270ba06000)</div><div style="background-color:rgb(255,255,255)"><span style="white-space:pre">    </span>/lib64/ld-linux-x86-64.so.2 (0x00007f270c654000)</div><div style="background-color:rgb(255,255,255)"><br></div><div style="background-color:rgb(255,255,255)">So they are pointing to the same location.</div><div style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">For installation of cyrus, I have downloaded the tar.gz, untarred it and then configured it using ./configure, followed by make, make install and adding the symbolic link as mentioned in the documentation.</div><div style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">However, for the server side application (in my case memcached) using cyrus-sasl, I don't see any generalized way, I only see documentation for postfix server application.</div><div style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">W</div></span></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr">Thanks and Regards,<div>Om Kale</div><div><br></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, May 17, 2018 at 7:08 PM, Dan White <span dir="ltr"><<a href="mailto:dwhite@olp.net" target="_blank">dwhite@olp.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 05/17/18 18:41 -0700, Om Kale wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
I am trying to integrate cyrus-sasl with memcached. I am repeatedly seeing<br>
the following error on the memcached application server:<br>
SASL (severity 5): could not find auxprop plugin, was searching for 'sasldb'<br>
SASL (severity 5): could not find auxprop plugin, was searching for 'sasldb'<br>
<br>
<br>
Could someone please help me with the same.<br>
<br>
I have created a config file named memcached.conf inside /usr/lib/sasl2/<br>
that looks like follows:<br>
pwcheck_method: auxprop<br>
auxprop_plugin: sasldb<br>
mech_list: plain<br>
log_level: 5<br>
sasldb_path: /usr/lib/sasl2<br>
<br>
I have also configured cyrus-sasl using:<br>
./configure --with-plugindir=/usr/lib/<wbr>sasl<wbr>2 --with-configdir=/usr/lib/<wbr>sasl<wbr>2<br>
</blockquote>
<br></span>
Assuming that you compiled dynamically, does the sasldb shared library<br>
exist? If not, you may need to check it's build dependencies and you may<br>
need to specify --with-dblib and/or CPPFLAGS/LDFLAGS if berkerly cannot be<br>
found.<br>
<br>
Use 'pluginviewer -a' to verify that the glue library can find sasldb.<br>
strace or another system call trace tool should verify the directory path<br>
being searched.<br>
<br>
If using shared libraries, ldd on both pluginview and your memcached binary<br>
should point to the same location for libsasl2.so.2.<br>
</blockquote></div><br></div></div>