Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
authuserdb login failure in courier-imap 4.0.1
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
p_d_austin
n00b
n00b


Joined: 21 Jan 2005
Posts: 26

PostPosted: Fri Feb 04, 2005 5:45 pm    Post subject: authuserdb login failure in courier-imap 4.0.1 Reply with quote

I did an emerge world this morning and am now unable to login to my IMAP server with accounts in the authuserdb.

To try and fix the problem I unmerged courier-imap and courier-authlib and deleted all config files then did a clean install.

I then updated the authdaemonrc to use the following modules.

authmodulelist="authpam authuserdb authshadow authcustom"

If I do a test with a unix user account I can login. If I try and login using a user from the in the userdb it fails.

Any suggestions?

Paul
Back to top
View user's profile Send private message
justanothergentoofanatic
Guru
Guru


Joined: 29 Feb 2004
Posts: 337

PostPosted: Fri Feb 04, 2005 6:03 pm    Post subject: Reply with quote

Courier 0.48 reorganized the authentication stuff; it is now in /etc/courier/authlib. You need to copy your userdb to /etc/courier/authlib/userdb, re-run makeuserdb, and edit /etc/courier/authlib/authdaemonrc so it is using the right authentication modules.

-Mike
Back to top
View user's profile Send private message
p_d_austin
n00b
n00b


Joined: 21 Jan 2005
Posts: 26

PostPosted: Fri Feb 04, 2005 6:11 pm    Post subject: Reply with quote

Thanks, works perfectly now, had to create some sym links in my userdb sub directories as maildrop is still looking in /etc/userdb
Back to top
View user's profile Send private message
osbourd2
Tux's lil' helper
Tux's lil' helper


Joined: 09 Mar 2004
Posts: 91
Location: Cardiff, UK

PostPosted: Sun Feb 06, 2005 10:09 pm    Post subject: Reply with quote

justanothergentoofanatic wrote:
Courier 0.48 reorganized the authentication stuff; it is now in /etc/courier/authlib. You need to copy your userdb to /etc/courier/authlib/userdb, re-run makeuserdb, and edit /etc/courier/authlib/authdaemonrc so it is using the right authentication modules.

-Mike


Thanks from me too - I symlinked the /etc/userdb... files to the /etc/courier/authlib/userdb.... as I also user maildrop. It didn't work at first, but I rebooted (I needed to anyway to use the new kernel) and it all works OK now. :D

I added courier-authlib to the "default" rc level and removed authdaemond, but during booting I got the following error:

"Cannot add provide 'authdaemond', as a service with the same name exists!"

Everything is working OK though, so did I need to remove the authdaemond from the default level?
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Sun Feb 06, 2005 10:14 pm    Post subject: Reply with quote

osbourd2 wrote:

"Cannot add provide 'authdaemond', as a service with the same name exists!"

Everything is working OK though, so did I need to remove the authdaemond from the default level?


Code:

rc-update del authdaemond
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1317
Location: Manchester, UK

PostPosted: Sun Feb 06, 2005 10:20 pm    Post subject: Reply with quote

delete the /etc/init.d/authdaemon script and the error will go away.
Back to top
View user's profile Send private message
osbourd2
Tux's lil' helper
Tux's lil' helper


Joined: 09 Mar 2004
Posts: 91
Location: Cardiff, UK

PostPosted: Mon Feb 07, 2005 1:32 pm    Post subject: Reply with quote

nobspangle wrote:
delete the /etc/init.d/authdaemon script and the error will go away.


I experimented with either authdaemond or courier-authlib at the default rc and both worked - the former without the warning message.
Back to top
View user's profile Send private message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 88

PostPosted: Thu Feb 17, 2005 4:02 am    Post subject: Reply with quote

justanothergentoofanatic wrote:
Courier 0.48 reorganized the authentication stuff; it is now in /etc/courier/authlib. You need to copy your userdb to /etc/courier/authlib/userdb, re-run makeuserdb, and edit /etc/courier/authlib/authdaemonrc so it is using the right authentication modules.

-Mike


How special am I? I can't find a userdb on my system. My configuration only ever used authpam, so I'm wondering if it was my emerge of PAM that pooched it. Do I need to copy/symlink /etc/shadow to the authlib dir??

I renamed the authdaemond script and the dupe error is gone, but I still can't authenticate to pop3d.

Errors:

Code:

pop3d: authdaemon: s_connect() failed: No such file or directory
pop3d: authentication error: No such file or directory


Thanks!
Back to top
View user's profile Send private message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 88

PostPosted: Thu Feb 17, 2005 4:07 am    Post subject: Reply with quote

fincoop wrote:

How special am I? I can't find a userdb on my system. My configuration only ever used authpam, so I'm wondering if it was my emerge of PAM that pooched it. Do I need to copy/symlink /etc/shadow to the authlib dir??

I renamed the authdaemond script and the dupe error is gone, but I still can't authenticate to pop3d.

Errors:

Code:

pop3d: authdaemon: s_connect() failed: No such file or directory
pop3d: authentication error: No such file or directory


Thanks!


NEVERMIND!!

I was looking at /etc/courier-imap/authdaemonrc... once I attended to /etc/courier/authdaemonrc it's all good. I just had to modify the authmodulelist parameter to authpam.

Code:

#authmodulelist="authmysql authpam authuserdb authshadow authcustom"
authmodulelist="authpam"


Just like it says above :)
Thanks.
Back to top
View user's profile Send private message
AlbertLash
n00b
n00b


Joined: 26 Aug 2004
Posts: 24

PostPosted: Thu Feb 17, 2005 7:21 pm    Post subject: Reply with quote

Hi, I was having problems with updated courier complaining about "Cannot add provide 'authdaemond', as a service with the same name exists!"

so I deleted it, and now I seem dead in the water with this error:

Feb 17 13:59:07 clark authdaemond: Can't locate init function courier_authmysql_init.
Feb 17 13:59:07 clark authdaemond: /usr/lib/courier-authlib/libauthmysql.so.0: undefined symbol: courier_authmysql_init

I use the postfix setup with MySQL, Pam, and Cyrus-sasl, as explained here:

http://www.gentoo.org/doc/en/virt-mail-howto.xml

Any ideas? When I restart everything, it seems to work, but a tail -f /var/log/mail/mail.err reveals the error above:

root@clark albertlash # /etc/init.d/courier-authlib restart
* Stopping courier-imapd... [ ok ]
* Stopping courier-imapd over SSL... [ ok ]
* Stopping courier-pop3d... [ ok ]
* Stopping courier-pop3d over SSL... [ ok ]
* Stopping courier-authlib: authdaemond... [ ok ]
* Starting courier-authlib: authdaemond... [ ok ]
* Starting courier-imapd... [ ok ]
* Starting courier-imapd over SSL... [ ok ]
* Starting courier-pop3d... [ ok ]
* Starting courier-pop3d over SSL... [ ok ]
Back to top
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Thu Feb 17, 2005 7:32 pm    Post subject: Reply with quote

post the output of `ldd -r /usr/lib/courier-authlib/libauthmysql.so.0`
_________________
Gentoo users' map
Back to top
View user's profile Send private message
AlbertLash
n00b
n00b


Joined: 26 Aug 2004
Posts: 24

PostPosted: Thu Feb 17, 2005 7:34 pm    Post subject: no such... Reply with quote

root@clark albertlash # ldd /usr/lib/courier-authlib/libauthmysql.so.0.0.0
/usr/bin/ldd: line 1: /usr/lib/courier-authlib/libauthmysql.so.0.0.0: No such file or directory
Back to top
View user's profile Send private message
AlbertLash
n00b
n00b


Joined: 26 Aug 2004
Posts: 24

PostPosted: Thu Feb 17, 2005 7:35 pm    Post subject: files Reply with quote

in /usr/lib/courier-authlib/:

lrwxrwxrwx 1 root root 21 Feb 17 11:00 libauthmysql.so -> libauthmysql.so.0.0.0
lrwxrwxrwx 1 root root 21 Feb 17 11:00 libauthmysql.so.0 -> libauthmysql.so.0.0.0
-rwxr-xr-x 1 root root 22912 Feb 17 11:00 libauthmysql.so.0.0.0
Back to top
View user's profile Send private message
AlbertLash
n00b
n00b


Joined: 26 Aug 2004
Posts: 24

PostPosted: Thu Feb 17, 2005 7:47 pm    Post subject: Just tried another ldd Reply with quote

Hmmm, this isn't making any sense. My libauthmysql.so.0.0.0 must be mush. I just tried and ldd on another lib in the same directory and it responded with some useful info. ldd can't find libauthmysql.so.0.0.0 for some reason.

root@clark albertlash # ldd /usr/lib/courier-authlib/libauthmysql.so.0.0.0
/usr/bin/ldd: line 1: /usr/lib/courier-authlib/libauthmysql.so.0.0.0: No such file or directory
root@clark albertlash # ls /usr/lib/courier-authlib/libauthmysql.so.0.0.0
/usr/lib/courier-authlib/libauthmysql.so.0.0.0

I'm going to try emerging my courier builds again... don't know what else to do.

Alby
Back to top
View user's profile Send private message
AlbertLash
n00b
n00b


Joined: 26 Aug 2004
Posts: 24

PostPosted: Thu Feb 17, 2005 8:43 pm    Post subject: Emerging courier-authlib does nothing Reply with quote

Argh, what a bummer. Still getting nothing when I ldd /usr/lib/courier-authlib/libauthmysql.so.0.0.0

I read somewhere else that maybe I should re-install mysql runtime libraries.

http://www.mail-archive.com/courier-users@lists.sourceforge.net/msg22078.html
Back to top
View user's profile Send private message
AlbertLash
n00b
n00b


Joined: 26 Aug 2004
Posts: 24

PostPosted: Fri Feb 18, 2005 1:05 am    Post subject: Mysql? Reply with quote

Yes, it is a mysql bug, a nasty one that caused many a folk to have mad probs.

http://forums.gentoo.org/viewtopic-p-2104258.html#2104258

http://forums.gentoo.org/viewtopic.php?p=1998302

http://bugs.gentoo.org/show_bug.cgi?id=82417

http://bugs.gentoo.org/show_bug.cgi?id=78678
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Sun Apr 24, 2005 4:45 am    Post subject: Reply with quote

a fresh install of courier-imap 4.0.1 reveals
Code:
vmware / # /usr/sbin/makeuserdb
/etc/courier/authlib/userdb: not found.


should I create it somehow?

cheers
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
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