From b547c596439fb7623325286ed44d8ebe82a27dfc Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Thu, 9 Jun 2016 10:57:38 +0200 Subject: [PATCH] set homeDirectory from ldap vdhome value --- roles/dovecot/templates/dovecot-ldap.conf.ext.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/dovecot/templates/dovecot-ldap.conf.ext.j2 b/roles/dovecot/templates/dovecot-ldap.conf.ext.j2 index 86d7893..d882253 100644 --- a/roles/dovecot/templates/dovecot-ldap.conf.ext.j2 +++ b/roles/dovecot/templates/dovecot-ldap.conf.ext.j2 @@ -31,3 +31,6 @@ scope = subtree # ldap filter, return an entity that is a virtual mail account user_filter = (&(objectClass=VirtualMailAccount)(mail=%n)(accountActive=TRUE)(delete=FALSE)) + +# when using global uid/gid use this +users_attrs = homeDirectory=vdhome