Getting template location and sender address from LDAP