On Wed, 5 Dec 2001, Craig Skinner wrote: > > when trying to set up a test account by doing:- > cyradm -user admin localhost imap > Please enter your password: > Please enter your password: > cyradm: cannot authenticate to server with as admin > > when trying to set up a test account by doing:- > cyradm -user admin -auth login localhost imap > IMAP Password: > Login failed: authentication failure at > /usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm > line 78 > cyradm: cannot authenticate to server with login as admin >
... and many more references ;-) Craig, sorry, i am not very good in diagnosing (?) problems via email but probably the following suggestions may help you: 0.) Check the contents of your logfile after you noticed a failed login. Didn't see that so far. But see above. ;-) 0b). In a different mail i've read something about db issues. Did you create sasldb with the same version of berkley db you've compiled cyrus and sasl with? Or is it a relict (again ?, sorry for my bad english!) from a different version? If so, build a new one. Cyrus and SASL are now built with the same version of db and these libs are known to the dynamic linker, right? 1.) Your permissions for /etc/sasldb seem to be ok. read/write for owner cyrus, read for group and none for the poor rest of the world. But check the uid/gid your cyrus runs with (/proc). Should be cyrus:mail by default. Otherwise chown sasldb to cyrus's user id. 2.) > sasldblistusers > user: admin realm: aberdeen.chstech.co.uk mech: DIGEST-MD5 > user: admin realm: aberdeen.chstech.co.uk mech: PLAIN > user: admin realm: aberdeen.chstech.co.uk mech: CRAM-MD5 You use your fqdn as realm. Make new entries for user admin with the -u option of saslpasswd. The perl programs use your hostname as realm. -> `saslpasswd -u aberdeen -c admin'. sasldblistusers should list [...] user: admin realm: aberdeen mech: DIGEST-MD5 [...] then. Seems to be an issue with cyradm in case the hostname is set to the fqdn. `hostname` returns aberdeen.chstech.co.uk, i guess, since the login message of your server shows that. 3.) > cyradm --user admin plain localhost > Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC > contains: /usr/lib/perl5/5.6.1/i386-linux > /usr/lib/perl5/5.6.1 > /usr/lib/perl5/site_perl/5.6.1/i386-linux > /usr/lib/perl5/site_perl/5.6.1 > /usr/lib/perl5/site_perl .). > BEGIN failed--compilation aborted. > find / -name Shell.pm > /usr/lib/perl5/5.6.1/Shell.pm > /usr/lib/perl5/site_perl/5.6.1/i386-linux/DBI/Shell.pm > /usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Shell.pm ^^^^^^^^^^^^^^-- look here > /usr/local/cyrus-imapd-2.0.16/perl/imap/IMAP/Shell.pm > /usr/local/cyrus-imapd-2.0.16/perl/imap/blib/lib/Cyrus/IMAP/Shell.pm ^^^^^^ your build dir? ^^^^^^ Your normal perl installation seems to be in /usr/lib/perl5 but the Cyrus stuff went to /usr/local/lib. Have a look at this dir and copy the contents that belong to cyrus to the apprpriate locations below /usr/lib/perl5. That should fix the path problem. Check contents of the perl rpm to make sure if you want. 4.) Read man cyradm. It seems you use so many different syntaxes that you irritate yourself (and me ;-) ) Hope i could add something to the existing confusion ;-) Best regards, --Andreas Amann [EMAIL PROTECTED]
