Adding back LDAP templating that seems to have not been commited