Hi all,

I would like to find more informations about authentication with
authuserdb cause i'm not able to authenticate at all using this module.

Here is my configuration :

* One system user : vmail HOME : /var/mail/vmail in his home, there is
other directory that i want to use for virtual domains

kalys:/var/mail/vmail# ls -l
total 2
drwxr-xr-x    4 vmail    vmail         112 Dec 15 17:11 domains
drwxr-xr-x    2 vmail    vmail          48 Dec 15 17:09 non-users
drwxr-xr-x    2 vmail    vmail          48 Dec 15 17:09 users

* One virtual mailbox : test under domain opentech.be

kalys:/var/mail/vmail/domains/opentech.be# ls -l
total 1
drwx------    5 vmail    vmail         120 Dec 15 17:10 test

* User database is situated under etc in the configuration path
/usr/local/courier-imap/etc/userdb/

kalys:/usr/local/courier-imap/etc/userdb# ls -l
total 12
-rw-------    1 root     staff         130 Dec 15 17:08 default
-rw-------    1 root     staff         103 Dec 15 17:18 opentech.be
-rw-------    1 root     staff         103 Dec 15 17:38 unixtech.be

As you can see, i want to have virtual mailboxes for two distinct domains

* Content of the default file : (generated with pw2userdb and the uid
and gid are these coming from my system ;))

kalys:/usr/local/courier-imap/etc/userdb# cat default
vmail
uid=1012|gid=1012|home=/var/mail/vmail|shell=/bin/bash|systempw=xxxxxxxxx|gecos=Virtual
 

Mail Account,,,
1012=   vmail

*  Content of  opentech.be text file (entry was created using the userdb
perl script and field imappw trough userdbpw)

kalys:/usr/local/courier-imap/etc/userdb# cat opentech.be
[EMAIL PROTECTED]
uid=1012|mail=/var/mail/vmail/domains/opentech.be/test|gid=1012|imappw=ZoB9vt66CpS56

* I have build the database using makeuserdb script and get the three
following files :

kalys:/usr/local/courier-imap/etc# ls -l userdb*
-rwx------    1 root     staff       12608 Dec 15 17:38 userdb.dat
-rwx------    1 root     staff           0 Dec 15 17:20 userdb.lock
-rwx------    1 root     staff       12490 Dec 15 17:38 userdbshadow.dat

* Here is the configuration line extracted from my authdaemonrc file :

#The available modules you can use are: authcustom authcram authuserdb
authshadow authpwd
#authmodulelist="authcustom authcram authuserdb authshadow authpwd"
authmodulelist="authuserdb"

* Here is the list of processes running when i start the imap server
trough its startup script :

kalys:/usr/local/courier-imap/etc# ps aux | grep courier
root     14341  0.0  0.1  1540  536 ?        S    15:26   0:00
/usr/local/courier-imap/libexec/authlib/authdaemond.plain start
root     14345  0.0  0.1  1540  536 ?        S    15:26   0:00
/usr/local/courier-imap/libexec/authlib/authdaemond.plain start
root     14346  0.0  0.1  1540  536 ?        S    15:26   0:00
/usr/local/courier-imap/libexec/authlib/authdaemond.plain start

root     14352  1.0  0.1  2068  748 ?        S    15:26   0:00
/usr/local/courier-imap/libexec/couriertcpd -address=0
-stderrlogger=/usr/local/courier-imap/libexec/logger
-stderrloggername=courier-imapd -maxprocs=40 -maxperip=4
-pid=/var/run/courier-imapd.pid -nodnslookup -noidentlookup 5143
/usr/local/courier-imap/sbin/imaplogin
/usr/local/courier-imap/libexec/authlib/authdaemon
/usr/local/courier-imap/bin/imapd

If i have a closer look at the previous line, i can see that couriertcp
is waiting for incoming connections on each network interfaces and on
port 5143, it will use logger with string courier-imapd. Couriertcpd
will store its pid in /var/run/courier-imapd.pid and will launch
imaplogin to authenticate the user whie imaplogin will speak the imap
protocol with the client.

root     14354  0.0  0.0  1272  332 ?        S    15:26   0:00
/usr/local/courier-imap/libexec/logger courier-imapd
root     14355  0.0  0.1  1540  536 ?        S    15:26   0:00
/usr/local/courier-imap/libexec/authlib/authdaemond.plain start
root     14356  0.0  0.1  1540  536 ?        S    15:26   0:00
/usr/local/courier-imap/libexec/authlib/authdaemond.plain start
root     14357  0.0  0.1  1540  536 ?        S    15:26   0:00
/usr/local/courier-imap/libexec/authlib/authdaemond.plain start

* Syslog informations about my authdaemond processes :

Dec 16 15:26:15 kalys authdaemond.plain: authdaemon:
modules="authuserdb", daemons=5

* Here is what i get when i try to authenticate :

* OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc.  See
COPYING for distribution information.
A1 login [EMAIL PROTECTED] test
A1 NO Login failed.

Dec 16 15:41:46 kalys courier-imapd: LOGIN FAILED, ip=[127.0.0.1]

Did i miss something in my configuration ?

Is there any configuration options that could help me to debug what's
happening ?

I would really appreciate some more help !

Thx in advance !

-- 
Benjamin Constant
http://www.OpenTech.be

<< The beauty of an open system is that innovative people will find ways
to improve the system that the original creators never anticipated... >>

Mark Frauenfelder






_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to