ldap authentication, templating