Jon Clausen wrote:
On Mon, 21 Nov, 2005 at 09:16:39 -0600, Jim Flanagan wrote:
Jon Clausen wrote:
Did you remember to `rcsaslauthd restart` after you changed the config?
Yes, I did do that.
and `rccyrus restart` too?
Yes, rccyrus restart too.
What I mean here is that after I changed the auth from pam to sasldb, I can't login to cyradm to set up users mailboxes. (this using "cyradm --auth login localhost --user cyrus". I get a wrong password message.
Right. Please quote from the log.
Before I changed imap.conf to use sasldb, I could get to that using the root password. This now fails. So I set up a new user wiht "saslpasswd2 cyrus" and enterd a password for that user, but the cyradm login still fails. Not sure how to create cyrus mailboxes under this new setup.
You manage the mailboxes the same way as before, but;
Before you start with the mailboxes, you have to get beyond the login.
What does `grep -v "#" /etc/imapd.conf` look like?
HTH /Jon
Hi Jon, OK, here is some detailed info. telnet shows... ----------- test10:/home/user # telnet localhost imap Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK test10 Cyrus IMAP4 v2.2.12 server ready -------- grep shows... -------- test10:/etc # grep -v "#" /etc/imapd.conf configdirectory: /var/lib/imap partition-default: /var/spool/imap sievedir: /var/lib/sieve admins: cyrus allowanonymouslogin: no autocreatequota: 10000 reject8bit: no quotawarn: 90 timeout: 30 poptimeout: 10 dracinterval: 0 drachost: localhost sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sasldb lmtp_overquota_perm_failure: no lmtp_downcase_rcpt: yes test10:/etc # -------- /var/log/messages shows... -------- Nov 22 20:02:36 test10 master[7356]: about to exec /usr/lib/cyrus/bin/imapd Nov 22 20:02:36 test10 imap[7356]: executed Nov 22 20:02:36 test10 imap[7356]: accepted connection Nov 22 20:02:41 test10 imap[7356]: unable to open Berkeley db /etc/sasldb2: Permission denied Nov 22 20:02:41 test10 imap[7356]: unable to open Berkeley db /etc/sasldb2: Permission denied Nov 22 20:02:41 test10 imap[7356]: badlogin: localhost [127.0.0.1] plaintext cyrus SASL(-13): user not found: checkpass failed -------- l of /etc shows... -------- -rw-r----- 1 root root 12288 2005-11-20 21:34 sasldb2 -------- Trying to use cryadm to login/manage user cyrus... -------- test10:/home/user # cyradm --auth login localhost -u cyrus IMAP Password: Login failed: user not found at /usr/lib/perl5/vendor_perl/5.8.7/i586-linux-thread-multi/Cyrus/IMAP/Admin.pm line 118 cyradm: cannot authenticate to server with login as cyrus -------- /usr/lib/perl5/vendor_perl/5.8.7/i586-linux-thread-multi/Cyrus/IMAP/admin.pm shows... ------ 113 sub authenticate { 114 my $self = shift; 115 if(@_) { 116 $self->{authopts} = \@_; 117 } 118 my $rc = $self->{cyrus}->authenticate(@_); -------- I'm not sure what is going on here. I did not follow Part D of the web link instructions, as I beleive this to be fixed in Suse 9.3/10.0. After I first set up sasldb, I tried to login to imap using cyradm -u cyrus. This did not work using the system (pam) root password. So I did saslpasswd -c cyrus and set a password for that. Still cannot login to imap using cyradm -u cyrus. Thanks for the continued help. Jim