[tpop3d-discuss] LDAP & Maildir

Jari Huuskonen jari.huuskonen at peecee.com
02 May 2003 12:12:09 +0300


Hello all.

I had authentication problems last time 
with ldap, but thanks to Thai problem was solved.
Now i got problems to get clients to read their mails from
maildir. exam.(/home/Domain/john )

Tested with several types of auth-ldap-mailbox, auth-ldap-mailbox-attr,
maildir options but no result.

Seems to me that tpop3 is reading information from right place, but some
reason do not understand the mailformat or maildir format, i'm not sure.
"configured with --enable-mbox-maildir. --disable-mbox-bsd"

User gets authenticated with success, but log says
unknown mailbox type bsd?


May  2 11:02:18 mailserver tpop3d[1740]: listeners_post_select: client
[5]127.0.0.1/: connected

May  2 11:02:23 mailserver exim[1888]: 2003-05-02 11:02:23 Start queue
run: pid=1888

May  2 11:02:23 mailserver exim[1888]: 2003-05-02 11:02:23 End queue
run: pid=1888

May  2 11:02:23 mailserver tpop3d[1740]: authcontext_new_user_pass:
began session for `john' with ldap; uid 8, gid 12

May  2 11:02:23 mailserver tpop3d[1740]: fork_child:
[5]jarih(127.0.0.1): successfully authenticated with ldap

May  2 11:02:23 mailserver tpop3d[1740]: fork_child: new child is PID
1889

May  2 11:02:23 mailserver tpop3d[1889]: mailbox_new(/home/Domain/john):
request for unknown mailbox type bsd

May  2 11:02:25 mailserver tpop3d[1889]: connections_post_select: client
[5]jarih(127.0.0.1): disconnected; 34/129 bytes read/written

May  2 11:02:25 mailserver tpop3d[1889]: authcontext_delete: finished
session for `john' with ldap


tpop3d.conf

listen-address:         0.0.0.0()
max-children:           1024
append-domain:          yes
auth-ldap-enable:       yes
log-facility:           mail


mailbox:                maildir:$(home)/Maildir
auth-ldap-url:          ldap://localhost/ou=users,dc=domain,dc=com

auth-ldap-searchdn:
auth-ldap-password:
auth-ldap-scope:        base
auth-ldap-mailbox-attr: homeDirectory
auth-ldap-mail-user:    mail
auth-ldap-mail-group:   mail
auth-ldap-filter:       (&(uid=$(local_part))(objectClass=posixAccount))



john's ldiff file

# extended LDIF
#
# LDAPv3
# base <ou=users,dc=domain,dc=com> with scope sub
# filter: (uid=john)
# requesting: ALL
#
 
# john, users, domain.com
dn: uid=john,ou=users,dc=domain,dc=com
uid: john
cn: john
objectClass: InetOrgPerson
objectClass: posixAccount
objectClass: top
loginShell: /bin/false
uidNumber: 502
gidNumber: 502
homeDirectory: /home/Domain/John
sn: Doe
mail: john@domain.com
userPassword:: 12345
 
# search result
search: 2
result: 0 Success
 
# numResponses: 2
# numEntries: 1
~
-- 
************************************
Jari Huuskonen
Lemminkaisenkatu 46, 20520 Turku/FI
mb +358 40 533 4958
************************************