problem with old SASLDB
stefano sartini
stefano.sartini at dreamware.com
Wed Nov 6 08:34:49 EST 2002
Hi,
i spent a week trying to replicate an old installation of cyrus-imap +
postfix, trying not to lose about 300+ mail users & mailboxes. That
server will be replaced and the mailbox shoud not be affected by the
migration.
First attempt was to install over a RH 7.3 a plain new Cyrus (latest
rel.) from sources. It all went fine, but when i got the /etc/sasldb
from the "old" server, i was not able to authenticate.
So i searched the old server for the precise version of cyrus it has
installed on, and i found:
cyrus-imapd-devel-2.0.15-hiersepr2
cyrus-sasl-devel-1.5.24-184
cyrus-imapd-2.0.15-hiersepr2
cyrus-sasl-1.5.24-184
so i got them and installed on the new server. But, as u can imagine,
before i did a lot of tries to make it work, installing and deinstalling
libraries from source and from RPMs, so the new server is a little
messed up.
I replicated /var/imap and /var/spool/imap , i took /etc/imapd.conf and
/etc/cyrus.conf, i reconstruct-ed mailboxes (As i found in a tutorial
about crash recovery) and started ./master &
then i tried to change a pass for a fake user but from /var/log/messages:
Nov 6 12:14:09 5terre saslpasswd: error fetching from sasldb: Invalid
argument
Nov 6 12:14:09 5terre saslpasswd: error closing sasldb: Invalid argument
Nov 6 12:14:09 5terre saslpasswd: failed to set plaintext secret for
pippo: generic failure
Nov 6 12:14:09 5terre saslpasswd: PLAIN: failed to set secret for
pippo: generic failure
That error is common in EVERY application that makes use of /etc/sasldb
also tested with
/usr/local/bin/imtest -u cyrus -v localhost
C: C01 CAPABILITY
S: * OK 5terre Cyrus IMAP4 v2.0.15-HIERSEP-r2 server ready
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID
NO_ATOMIC_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT
THREAD=REFERENCES IDLE X-NETSCAPE
S: C01 OK Completed
Password:
C: L01 LOGIN root {5}
+ go ahead
C: <omitted>
L01 NO Login failed: generic failure
Authentication failed. generic failure
Security strength factor: 0
* BAD Invalid tag
Is it normal not to see AUTH=CRAM-MD5 and others AUTH methods?
A note: the original server's name is "abraracurcix" while new one is
"5terre". Doing a strace on saslpasswd i saw it looks for uname, finding
"5terre", but the /etc/sasldb contains "abraracurcix" as realm ...
How can i fix it?
Thanks in advance for any help,
Stefano Sartini
--
Networking Area
Dreamware srl
Località Lagoscuro, 19020 Vezzano Ligure
La Spezia, Italy
Tel ++39 0187 941011 | Fax ++39 0187 941020
More information about the Info-cyrus
mailing list