fix bug where ldap_template_name variable is not assigned a value