Re: sasldb2 migration

Konstantin <[email protected]>
Newsgroups gmane.comp.security.cyrus.sasl
Message-ID <CABOOiQUhn+3nWeMriazR_g_kcQQhwtbROjtk=oaL7Kyv77FAxg@mail.gmail.com>
I've disabled gdbm USE flag for dev-libs/cyrus-sasl-2.1.26-r9.
So now it has only following flags enabled:
berkdb pam ssl

After that i was able to copy old db file to /etc/sasl2/sasldb2
I can list users wuthsasldblistusers2
[email protected]: userPassword
[email protected]: userPassword

Here is the new issue i have. After i added new user i see
[email protected]: cmusaslsecretOTP
[email protected]: userPassword
[email protected]: userPassword

Can i disable OTP and use only old method without recompilation ?


On Tue, Jun 16, 2015 at 8:02 PM, Dan White <[email protected]> wrote:

> On 06/16/15 18:43 +0300, Konstantin wrote:
>
>> Hi,
>>
>> I have old system running with Centos 6,
>> cyrus-sasl-2.1.23-15.el6_6.2.x86_64
>> Many users saved in /etc/sasldb2 Berkeley DB file.
>>
>> New server is Gentoo. I've installed dev-libs/cyrus-sasl-2.1.23-r7.
>> I can create new users with saslpasswd2 and list with sasldblistusers2.
>>
>> New file /etc/sasl2/sasldb2 seems have another db type.
>> /etc/sasl2/sasldb2: GNU dbm 1.x or ndbm database, little endian, 64-bit
>>
>> How can i migrate (dump) sasldb2 file to Gentoo?
>>
>
> There's no direct way to accomplish what you are trying to do with the sasl
> utilities that I'm aware of.
>
> You could dump the contents on the old system with db_dump -p <file>,
> and feed/massage that data into 'saslpasswd2 -p' on the new system.
>
> --
> Dan White
>



-- 
*This message was delivered using 100% recycled electrons*.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.