Authentication problems

Pavel A Crasotin pavel at ctk.ru
Tue Jun 24 08:11:19 EDT 2003


Hello all

I've installed cyrus-imapd-2.1.13, cyrus-sasl-2.1.13 on FreeBSD 4.8
box.
In imapd.conf I have:
configdirectory:        /var/imap
defaultpartition:       default
partition-default:      /var/spool/imap
unixhierarchysep:       yes
allowplaintext:         yes
admins:                 cyrus cyrus at host.domain.tld
sasl_pwcheck_method:    auxprop
lmtpsocket: /var/imap/socket/lmtp

I've added to sasldb2 2 user:
# sasldblistusers2
cyrus at host.domain.tld: userPassword
test at host.domain.tld: userPassword

The 1st problem:
cyradm --user cyrus localhost
says
    cyradm: cannot authenticate to server with  as cyrus
Corresponding message in syslog:
    badlogin: localhost[127.0.0.1] DIGEST-MD5 [SASL(-13): user not found: no secret in database]

cyradm --user cyrus at host.domain.tld localhost
says the same but in syslog I see
badlogin: localhost[127.0.0.1] DIGEST-MD5 [SASL(-13): authentication failure: cross-realm login cyrus at host.domain.tld denied]

cyradm --user cyrus --auth login localhost
says
badlogin: localhost[127.0.0.1] plaintext cyrus SASL(-13): user not found: checkpass failed

Only
cyradm --user cyrus at cyrus@host.domain.tld --auth login localhost
works

What is wrong?
How can I authenticate in cyradm with cyrus? Or it is impossible?

The 2nd problem:
I've created mailbox test. But imtest works only as
imtest -a test at host.domain.tld -m login localhost
Other combinations don't work:
imtest -a test at host.domain.tld localhost says
badlogin: localhost[127.0.0.1] DIGEST-MD5 [SASL(-13): authentication failure: cross-realm login test at host.domain.tld denied]

imtest -a test localhost says
badlogin: localhost[127.0.0.1] DIGEST-MD5 [SASL(-13): user not found: no secret in database]

So what is wrong?
Please help!

With respect,
Pavel





More information about the Info-cyrus mailing list