LDAP: move more settings stuff to template file