From 68515bbb478f326a252ca688fcc97f3fdc8c4f97 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sun, 28 Aug 2016 16:08:42 +0200 Subject: Initial commit, finally got around to cleanup and make it into a gitrepo. --- roles/dovecot/files/conf.d/auth-ldap.conf.ext | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 roles/dovecot/files/conf.d/auth-ldap.conf.ext (limited to 'roles/dovecot/files/conf.d/auth-ldap.conf.ext') diff --git a/roles/dovecot/files/conf.d/auth-ldap.conf.ext b/roles/dovecot/files/conf.d/auth-ldap.conf.ext new file mode 100644 index 0000000..5db32fa --- /dev/null +++ b/roles/dovecot/files/conf.d/auth-ldap.conf.ext @@ -0,0 +1,33 @@ +# Authentication for LDAP users. Included from 10-auth.conf. +# +# + +passdb { + driver = ldap + + # Path for LDAP configuration file, see example-config/dovecot-ldap.conf.ext + args = /etc/dovecot/dovecot-ldap.conf.ext +} + +# "prefetch" user database means that the passdb already provided the +# needed information and there's no need to do a separate userdb lookup. +# +#userdb { +# driver = prefetch +#} + +userdb { + driver = ldap + args = /etc/dovecot/dovecot-ldap.conf.ext + + # Default fields can be used to specify defaults that LDAP may override + #default_fields = home=/home/virtual/%u +} + +# If you don't have any user-specific settings, you can avoid the userdb LDAP +# lookup by using userdb static instead of userdb ldap, for example: +# +#userdb { + #driver = static + #args = uid=vmail gid=vmail home=/var/vmail/%u +#} -- cgit v1.2.3-70-g09d2