Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Courier-Imap - Courier-Authlib - PAM Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
voldemort
n00b
n00b


Joined: 07 Dec 2005
Posts: 2

PostPosted: Wed Dec 07, 2005 7:11 pm    Post subject: [SOLVED] Courier-Imap - Courier-Authlib - PAM Problem Reply with quote

It took me most of a day and half of the night, but I finally have it working.

The symptoms:

1) emerge update
2) etc-update config changes were minor
3) SMTPauth and courier-imap no longer work

The Investigation:

Logfiles report imap-ssl failed to authenticate: imapd: LOGIN FAILED, user=blahblahblah

I turned on full debugging in authdaemonrc. Full debugging is friggin' useless. It reports no useful information, only username and attempted password which I knew for a fact were good.

Trying to run authtest against courier-authlib gave the error: Authentication FAILED: Operation not permitted

Debugging reported error: undefined symbol: nscd_flush_cache

Attempted solutions:

I deep emerged older versions of saslauthd, courier-imap, courier-authlib which worked previously but no longer worked. I installed courier-imap and courier-authlib from current source and got the same error. I cursed and swore. I considered wiping Gentoo and installing Ubuntu. Despite exhaustive searches on this forum and lots of people with the same or similar problems, nothing I found worked.

The Holy Grail:

I finally found a site (http://squarism.com)that described a solution to the exact problem I was having and gave a credible explanation. Courier-authlib has a problem in that courier-libpam builds and links to undefined and weak symbols such as nscd_flush_cache. All version 0.57 builds may exhibit this problem. The solution is to mask 0.57 and emerge the older 0.55.

Try this:

# echo ">=net-libs/courier-authlib-0.57" >> /etc/portage/package.mask
# emerge courier-authlib


BINGO!! My IMAP, IMAP-SSL now work. In the past, I have found lots of valuable information to solve problems, so this is my attempt to contribute...
Back to top
View user's profile Send private message
jguc
n00b
n00b


Joined: 09 Mar 2003
Posts: 33

PostPosted: Thu Dec 15, 2005 3:06 pm    Post subject: Worked!!!!!! Reply with quote

Wow.... I've tried everything I have found... nothing worked... but courier-pop3d worked for me, so courier-imapd must work too. That was the solution. Thanks.

Code:
Dec 15 16:02:50 raichu imapd: LOGIN, user=*****, ip=[::ffff:127.0.0.1], protocol=IMAP

_________________
###JENIUX###
Back to top
View user's profile Send private message
Robert S
Guru
Guru


Joined: 15 Aug 2004
Posts: 463
Location: Canberra Australia

PostPosted: Thu Dec 15, 2005 7:56 pm    Post subject: Reply with quote

Don't know if this is what you are after, but I changed the default authmodulelist in /etc/courier/authlib/authdaemonrc to
Quote:
authmodulelist="authpam"
I initially had the same problem and this fixed it.
Back to top
View user's profile Send private message
jguc
n00b
n00b


Joined: 09 Mar 2003
Posts: 33

PostPosted: Thu Dec 15, 2005 11:40 pm    Post subject: Reply with quote

Robert S wrote:
Don't know if this is what you are after, but I changed the default authmodulelist in /etc/courier/authlib/authdaemonrc to
Quote:
authmodulelist="authpam"
I initially had the same problem and this fixed it.


I have authdaemondrc like you say, but it doesn't work. With this config and courier-pop3d it works, I can login via "telnet localhost 110" and in /var/log/messages I see that the login is correct, but with courier-imap it always fails. Only the downgrade solved the problem.
_________________
###JENIUX###
Back to top
View user's profile Send private message
korvus
n00b
n00b


Joined: 18 Dec 2005
Posts: 1

PostPosted: Sun Dec 18, 2005 2:54 pm    Post subject: Reply with quote

jguc wrote:
Robert S wrote:
Don't know if this is what you are after, but I changed the default authmodulelist in /etc/courier/authlib/authdaemonrc to
Quote:
authmodulelist="authpam"
I initially had the same problem and this fixed it.


I have authdaemondrc like you say, but it doesn't work. With this config and courier-pop3d it works, I can login via "telnet localhost 110" and in /var/log/messages I see that the login is correct, but with courier-imap it always fails. Only the downgrade solved the problem.


I did what is perhaps an unwise approach where I did the downgrade (which didn't work) and then I changed the authdaemonrc file (which did). I can't say for sure if it was just the second step or the combination of both, but either way, I'm up and running again. Thanks to everyone who posts solutions here.
Back to top
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Mon Jan 23, 2006 10:55 pm    Post subject: Reply with quote

Changing the authmodulelist setting to authpam only worked for me! Thanks!
_________________
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Back to top
View user's profile Send private message
sleepyhead
n00b
n00b


Joined: 02 Feb 2006
Posts: 3

PostPosted: Fri Feb 03, 2006 12:22 am    Post subject: Reply with quote

Thanks for the help.

I just like to add a few things. I emerged down authlib .55 and it still didn't work but when i edited authdaemonrc for the "authpam" and restarted courier-authlib it not only restarted that service but the other couriers such imap. Right away that told me everything was working and sure enough i was able to get my email. So i then emerged back to .58 and made sure "authpam" was not commented out and that worked as well. Basically it looked like all I needed to do was uncomment "authpam"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum