I am having some issues with getting the prefetch working. In /etc/dovecot/dovecot-ldap.conf.ext I am having:
pass_attrs = uid=user,userPassword=password,host=host,homeDirectory=userdb_home,uidNu mber=userdb_uid,gidNumber=userdb_gid If I do an ldap search from this location I am able to get these properties. ldapsearch -LLL -W -s sub -D "uid=test,ou=xx,ou=xx,ou=xx,dc=xx,dc=xx,dc=xx" -b "uid=test,ou=xx,ou=xx,ou=xx,dc=xx,dc=xx,dc=xx" -H ldaps://ldap.local:8443 '(&(objectClass=posixAccount)(uid=test))' Yet I am still having this Aug 24 19:51:35 auth: Debug: prefetch(test,127.0.0.1,<0Qf36aStdJV/AAAB>): passdb didn't return userdb entries, trying the next userdb Aug 24 19:51:35 auth: Debug: prefetch(test,127.0.0.1,<0Qf36aStdJV/AAAB>): Finished userdb lookup Aug 24 19:51:35 auth: Error: plain(test,127.0.0.1,<0Qf36aStdJV/AAAB>): user not found from any userdbs This is my auth-ldap.conf.ext 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. # <doc/wiki/UserDatabase.Prefetch.txt> userdb { driver = prefetch }