Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th June 2008, 15:34
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default Cyrus authentication problem

Hi folks,


Ubuntu 6.06 LAMP server amd64


Having tried 2 days on authentication problem without result. The sever can send and receive mails. Apache and SquirrelMai are running.


Discovery are as follows


$ testsaslauthd -f /var/spool/postfix/var/run/saslauthd/mux -u cyrus -p xyz
Code:
0: OK "Success."

$ cyradm -u cyrus localhost
Code:
IMAP Password: xyz
              Login failed: generic failure at
/usr/lib/perl5/Cyrus/IMAP/Admin.pm line 118
cyradm: cannot authenticate to server as cyrus

line 118
Code:
    my $rc = $self->{cyrus}->authenticate(@_);

$ telnet localhost imap
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision,
Inc.  See COPYING for distribution information.
imap login cyrus xyz
imap NO Login failed.
Connection closed by foreign host.

Tried another user


$ telnet localhost imap
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision,
Inc.  See COPYING for distribution information.
imap login satimiscyrus abc
imap NO Login failed.
Connection closed by foreign host.

$ cat /etc/default/saslauthd
Code:
START=yes
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"
MECHANISMS="pam"

$ sudo find / -name imap.conf
No printout


$ cat /etc/pam.d/imap
Code:
@include common-auth
@include common-account

$ cat /etc/pam.d/common-auth
Code:
auth    required        pam_unix.so nullok_secure

$ cat /usr/share/pam/common-auth
Code:
auth    required        pam_unix.so nullok_secure

$ cat /etc/pam.d/common-account
Code:
account required        pam_unix.so

$ cat /usr/share/pam/common-account
Code:
account required        pam_unix.so

$ ls -l /usr/lib/sasl2/
Code:
total 500
-rw-r--r-- 1 root root 19036 2006-04-24 19:38 libanonymous.a
-rw-r--r-- 1 root root   855 2006-04-24 19:38 libanonymous.la
lrwxrwxrwx 1 root root    22 2008-04-18 07:24 libanonymous.so ->
libanonymous.so.2.0.19
lrwxrwxrwx 1 root root    22 2008-04-18 07:24 libanonymous.so.2 ->
libanonymous.so.2.0.19
-rw-r--r-- 1 root root 15712 2006-04-24 19:38 libanonymous.so.2.0.19
-rw-r--r-- 1 root root 21802 2006-04-24 19:38 libcrammd5.a
-rw-r--r-- 1 root root   841 2006-04-24 19:38 libcrammd5.la
lrwxrwxrwx 1 root root    20 2008-04-18 07:24 libcrammd5.so ->
libcrammd5.so.2.0.19
lrwxrwxrwx 1 root root    20 2008-04-18 07:24 libcrammd5.so.2 ->
libcrammd5.so.2.0.19
-rw-r--r-- 1 root root 19104 2006-04-24 19:38 libcrammd5.so.2.0.19
-rw-r--r-- 1 root root 59792 2006-04-24 19:38 libdigestmd5.a
-rw-r--r-- 1 root root   864 2006-04-24 19:38 libdigestmd5.la
lrwxrwxrwx 1 root root    22 2008-04-18 07:24 libdigestmd5.so ->
libdigestmd5.so.2.0.19
lrwxrwxrwx 1 root root    22 2008-04-18 07:24 libdigestmd5.so.2 ->
libdigestmd5.so.2.0.19
-rw-r--r-- 1 root root 46336 2006-04-24 19:38 libdigestmd5.so.2.0.19
-rw-r--r-- 1 root root 19262 2006-04-24 19:38 liblogin.a
-rw-r--r-- 1 root root   835 2006-04-24 19:38 liblogin.la
lrwxrwxrwx 1 root root    18 2008-04-18 07:24 liblogin.so ->
liblogin.so.2.0.19
lrwxrwxrwx 1 root root    18 2008-04-18 07:24 liblogin.so.2 ->
liblogin.so.2.0.19
-rw-r--r-- 1 root root 16352 2006-04-24 19:38 liblogin.so.2.0.19
-rw-r--r-- 1 root root 38724 2006-04-24 19:38 libntlm.a
-rw-r--r-- 1 root root   829 2006-04-24 19:38 libntlm.la
lrwxrwxrwx 1 root root    17 2008-04-18 07:24 libntlm.so ->
libntlm.so.2.0.19
lrwxrwxrwx 1 root root    17 2008-04-18 07:24 libntlm.so.2 ->
libntlm.so.2.0.19
-rw-r--r-- 1 root root 32264 2006-04-24 19:38 libntlm.so.2.0.19
-rw-r--r-- 1 root root 27142 2006-04-24 19:38 libotp.a
-rw-r--r-- 1 root root   829 2006-04-24 19:38 libotp.la
lrwxrwxrwx 1 root root    16 2008-04-18 07:24 libotp.so ->
libotp.so.2.0.19
lrwxrwxrwx 1 root root    16 2008-04-18 07:24 libotp.so.2 ->
libotp.so.2.0.19
-rw-r--r-- 1 root root 48856 2006-04-24 19:38 libotp.so.2.0.19
-rw-r--r-- 1 root root 19342 2006-04-24 19:38 libplain.a
-rw-r--r-- 1 root root   835 2006-04-24 19:38 libplain.la
lrwxrwxrwx 1 root root    18 2008-04-18 07:24 libplain.so ->
libplain.so.2.0.19
lrwxrwxrwx 1 root root    18 2008-04-18 07:24 libplain.so.2 ->
libplain.so.2.0.19
-rw-r--r-- 1 root root 16384 2006-04-24 19:38 libplain.so.2.0.19
-rw-r--r-- 1 root root 29164 2006-04-24 19:38 libsasldb.a
-rw-r--r-- 1 root root   856 2006-04-24 19:38 libsasldb.la
lrwxrwxrwx 1 root root    19 2008-04-18 07:24 libsasldb.so ->
libsasldb.so.2.0.19
lrwxrwxrwx 1 root root    19 2008-04-18 07:24 libsasldb.so.2 ->
libsasldb.so.2.0.19
-rw-r--r-- 1 root root 21288 2006-04-24 19:38 libsasldb.so.2.0.19

Please help. TIA


B.R.
satimis
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SASL authentication problem _Alien__ HOWTO-Related Questions 17 24th June 2010 13:15
Virtual users... Ubuntu 8.04 spaceuser HOWTO-Related Questions 12 19th June 2008 08:04
SMTP authentication problem mphayesuk General 2 13th December 2007 11:33
Mail server attack princebenin Server Operation 1 19th November 2007 14:02
ispconfig-dev + cyrus = problem ignasigarcia Installation/Configuration 1 27th June 2006 12:08


All times are GMT +2. The time now is 05:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.