<div dir="ltr"><div>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></div>After that i was able to copy old db file to <span class="im">/etc/sasl2/sasldb2</span><div>I can list users wuthsasldblistusers2 <br><a href="mailto:user1@domain.com">user1@domain.com</a>: userPassword<br><a href="mailto:user2@domain.com">user2@domain.com</a>: userPassword<br></div><div><br></div><div>Here is the new issue i have. After i added new user i see<br><a href="mailto:test@domain.com">test@domain.com</a>: cmusaslsecretOTP<br><a href="mailto:user1@domain.com">user1@domain.com</a>: userPassword<br><a href="mailto:user2@domain.com">user2@domain.com</a>: userPassword<br><br></div><div>Can i disable OTP and use only old method without recompilation ?<br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 16, 2015 at 8:02 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 06/16/15 18:43 +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">
Hi,<br>
<br>
I have old system running with Centos 6, 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>
I can create new users with saslpasswd2 and list with sasldblistusers2.<br>
<br>
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>
</blockquote>
<br></span>
There's no direct way to accomplish what you are trying to do with the sasl<br>
utilities that I'm aware of.<br>
<br>
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.<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>