Hi--

I'm having trouble figuring out how to authenticate to the
cyrus server I'm trying to install. 

Environment:
 linux debian 2.2 potato, 2.2.18 kernal
 sleepycat berkeley db version 3.2.mumble in /usr/local,
 sasl 1.5.24, imap 2.0.12, openssl 0.9.6,
 and I believe that I have linked sasl and the imap server
 against the correct db.
 the sasl test program claims things are ok. 
 the server appears to start ok and bind to ports

 I have created a unix userid for the admin user, and that userid is
 in the imapd.conf. 
 I used saslpasswd to add the user, and sasldblistusers gives me:

genbox:/usr/lib/sasl# sasldblistusers 
user: adminuser realm: genbox mech: CRAM-MD5
user: adminuser realm: genbox mech: PLAIN
user: adminuser realm: genbox mech: DIGEST-MD5

 
>From a management perspective, 
I'm comfortable using sasldb, shadow, or PAM as the auth method, 
but I've been unable to figure out how to make any of these work,
either for cyradm, or by telnet'ing to the imap port. 

I have "allowplaintext:     yes" in the imapd.conf. 
I've tried setting sasl_pwcheck_method: to sasldb, pam, and shadow.
 
genbox# cyradm -u adminuser
cyradm> server localhost
Please enter your password: <anything entered here produces syslog error>
IMAP Password: <anything entered here appears to make no difference>
              Virtual memory exhausted at /usr/local/lib/site_perl/i386-linux/Cy
rus/IMAP.pm line 125.
genbox#

syslog then says:
imapd[1031]: badlogin: localhost[127.0.0.1] DIGEST-MD5 authentication failure


why is cyradm trying a DIGEST-MD5 auth? can that even work? 
if things were working correctly, what would I enter at each 
of the two password prompts? 

genbox# telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK imap1.mirror.to Cyrus IMAP4 v2.0.12 server ready
C01 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME 
UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=DIGEST-MD5 
AUTH=CRAM-MD5
C01 OK Completed
A01 login adminuser adminpasswd
A01 NO Login failed: user not found
. logout
* BYE LOGOUT received
. OK Completed

what am I missing? 

Another concern I have is that imtest segfaults when given any 
arguments. With no arguments, it spits the usage message as expected, 
but with args, segfault... 

genbox# ldd /usr/local/bin/imtest 
        libsasl.so.7 => /usr/local/lib/libsasl.so.7 (0x40014000)
        libssl.so.0 => /usr/lib/libssl.so.0 (0x400bd000)
        libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x400ea000)
        libc.so.6 => /lib/libc.so.6 (0x401ad000)
        libdl.so.2 => /lib/libdl.so.2 (0x4028b000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x4028f000)
        libpam.so.0 => /lib/libpam.so.0 (0x402bc000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x402c4000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Any help greatly appreciated...

  --akb



Reply via email to