[Dovecot] setting up ldap for sasl

jeff donovan jdonovan at beth.k12.pa.us
Mon Apr 2 16:01:04 EEST 2012


Greetings
im new to the list
 dovecot --version
2.0.13
ubuntu 11.10
i want to use dovecot to authenticate my ldap users.  My local users can authenticate and send email. Using postfix sasl/tls dovecot pam.

I have read many docs/tutorials, which all have a plethora of options and information. my file structure is different than most of the documentation. 
I have ../etc/dovecot.conf which points to.

!include_try /usr/share/dovecot/protocols.d/*.protocol
!include conf.d/*.conf
!include_try local.conf


which leads me to /etc/dovecot/conf.d, which is full of config files. All were traditionally located in dovecot.conf in previous versions.

im using PAM to authenticate my local system users. I have read that could adjust PAM, to use LDAP. 

How do I configure dovecot to keep using pam for local users and ldap for remote ? Do i just add the passdb lines 

dovecot.conf:

passdb ldap {

  args = /etc/dovecot-ldap.conf

}

userdb prefetch {

}

# The userdb below is used only by deliver.

userdb ldap {

  args = /etc/dovecot-ldap.conf

}
dovecot-ldap.conf:

pass_attrs = uid=user,userPassword=password, homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid

# For deliver:
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid


any assistance would be helpful.
-j

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2497 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20120402/c82abfd9/attachment-0002.bin>


More information about the dovecot mailing list