<div dir="ltr"><div><div><div>Here is what i did.<br><br></div>I've changed ebuild for cyrus-sasl and added --disable-otp.<br></div>Also i enabled urandom because performance was too slow.<br><br></div>Thanks for your help!<br><div><br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 18, 2015 at 5:17 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On Tue, Jun 16, 2015 at 8:02 PM, Dan White <<a href="mailto:dwhite@olp.net" target="_blank">dwhite@olp.net</a>> wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
On 06/16/15 18:43 +0300, Konstantin wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
cyrus-sasl-2.1.23-15.el6_6.2.x86_64<br>
Many users saved in /etc/sasldb2 Berkeley DB file.<br>
<br>
New server is Gentoo. I've installed dev-libs/cyrus-sasl-2.1.23-r7.<br>
<br></span><span class="">
New file /etc/sasl2/sasldb2 seems have another db type.<br>
/etc/sasl2/sasldb2: GNU dbm 1.x or ndbm database, little endian, 64-bit<br>
<br>
How can i migrate (dump) sasldb2 file to Gentoo?<br>
</span></blockquote>
<br><span class="">
You could dump the contents on the old system with db_dump -p <file>,<br>
and feed/massage that data into 'saslpasswd2 -p' on the new system.<br>
</span></blockquote></blockquote><span class="">
<br>
On 06/18/15 14:48 +0300, Konstantin wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I've disabled gdbm USE flag for dev-libs/cyrus-sasl-2.1.26-r9.<br>
So now it has only following flags enabled:<br>
berkdb pam ssl<br>
<br>
After that i was able to copy old db file to /etc/sasl2/sasldb2<br>
I can list users wuthsasldblistusers2<br>
<a href="mailto:user1@domain.com" target="_blank">user1@domain.com</a>: userPassword<br>
<a href="mailto:user2@domain.com" target="_blank">user2@domain.com</a>: userPassword<br>
<br>
Here is the new issue i have. After i added new user i see<br>
<a href="mailto:test@domain.com" target="_blank">test@domain.com</a>: cmusaslsecretOTP<br>
<a href="mailto:user1@domain.com" target="_blank">user1@domain.com</a>: userPassword<br>
<a href="mailto:user2@domain.com" target="_blank">user2@domain.com</a>: userPassword<br>
<br>
Can i disable OTP and use only old method without recompilation ?<br>
</blockquote>
<br></span>
Removing the libotp shared library from your filesystem, or recompiling<br>
without otp support if you compiled libsasl statically, will prevent the<br>
cmusaslsecretOTP from being generated, the next time you run saslpasswd2.<span class=""><font color="#888888"><br>
<br>
-- <br>
Dan White<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><b style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:13px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-size:8pt;color:rgb(152,72,6)"><span style="color:rgb(56,118,29)"><span style="background-color:rgb(255,255,255)">This message was delivered using 100% recycled</span></span><span><span style="color:rgb(56,118,29)"><span style="background-color:rgb(255,255,255)"> electrons</span></span></span></span></b><b style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:13px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-size:8pt;color:rgb(152,72,6)"><span></span></span></b>.<span style="color:rgb(0,0,128);font-family:arial,helvetica,sans-serif;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(253,248,219);display:inline!important;float:none"></span></div></div>
</div></div></div></div></div>