File: upgrade-saslv2.rst.txt

package info (click to toggle)
cyrus-sasl2 2.1.27%2Bdfsg-2.1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,940 kB
  • sloc: ansic: 58,942; javascript: 8,745; sh: 4,843; java: 1,614; xml: 1,498; makefile: 1,265; python: 342; perl: 199
file content (22 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Why am I having a problem running dbconverter-2 to upgrade from SASLv1 to SASLv2?
---------------------------------------------------------------------------------

The migration is documented in the official documentation.

When migrating the ``/etc/sasldb`` database using the ``utils/dbconverter-2`` 
utility, you may encounter the error message "Error opening password 
file". This is usually due to the fact your SASL V1 library was compiled 
using a different version of Berkeley DB than the SASL V2 library. You 
can work around this by using Berkeley DB's db_upgrade utility (possibly 
chaining the DB3 and DB4 upgrade utilities) to upgrade a copy of sasldb 
prior to conversion using dbconverter-2. 

Here is the script we use at our installation, where SASL has to coexist with SASL2::

    #!/bin/sh
    cp /etc/sasldb /tmp/sasldb.$$
    /usr/local/BerkeleyDB.4/bin/db_upgrade /etc/sasldb
    echo ""|/usr/local/sasl/sbin/dbconverter-2
    cp /tmp/sasldb.$$ /etc/sasldb