[Dovecot] dovecot+postifx+ldap

venne richard at dental-on-line.fr
Tue Aug 31 18:59:53 EEST 2004


hi,

i'm trying to set a dovecot/pop + postfix couple with ldap authentification.
and i'v got a lots of troubles.

hers's my dovecot.conf

protocols =  pop3
login = imap
login = pop3
first_valid_gid = 1000
last_valid_gid = 0
mail_extra_groups = mail
default_mail_env = maildir:/var/mail/%1u/%u/Maildir
mbox_locks = dotlock flock
auth = default
auth_mechanisms = plain
auth_userdb = ldap /etc/dovecot-ldap.conf
auth_passdb = ldap /etc/dovecot-ldap.conf
auth_verbose = yes


here's dovecot-ldap.conf

hosts = 192.168.128.1
dn = cn=manager,o=dental-on-line
dnpass = dolmaster
ldap_version = 3
base = ou=002f83,ou=machines,ou=fr,o=dental-on-line
deref = never
scope = subtree
user_attrs = uid
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uid,userPassword
pass_filter = (&(objectClass=posixAccount)(uid=%u))
default_pass_scheme = PLAIN
user_global_uid = 1000
user_global_gid = 1000

and, a ldif exempl:

dn: uid=mwerly, ou=002F83, ou=machines, ou=fr, o=dental-on-line
displayName: WERLY Marc
shadowExpire: -1
mobile: 000
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
userPassword:: eHh4
shadowLastChange: 10000
facsimileTelephoneNumber: 01.43.21.54.75
uid: mwerly
uidNumber: 12164
cn: Marc WERLY
shadowInactive: -1
loginShell: /bin/bash
shadowMin: 0
gidNumber: 100
shadowMax: 999999
gecos: mwerly
homeDirectory: /home/mwerly
sn: Marc
shadowWarning: 99

1 it seems unable to authenticate with
pop3-login: Login: mwerly [192.168.1.7]
Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8050d70 (0)
Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8084db0 (1)

:o(
2 if I comment
user_global_uid = 1000
user_global_gid = 1000
dovecot can't get uidnumber from ldap, in spite of its presence in ldap 
entry :'o(

3 postfix seem able to send messages to local virtual users(thanks of 
ldap/pam ldap authentification). the /var/mail/%u files are up2dated by 
postfix, but I simply can't get any mails with thoses dovcot logs:
pop3-login: Login: mwerly [192.168.1.7]
Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8050d70 (0)
Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8084db0 (1)

:`o[[[[[

please help



More information about the dovecot mailing list