In this case you'd need to use the search base to specify where in the tree to start the search, i.e.:
Code:
DistinguishedName dn = new DistinguishedName();
dn.add("c", "Sweden");
return ldapTemplate.search(dn, "(objectclass=person)", new AttributesMapper(){...});
Note that the above depends on that the ContextSource base is set to
Also note that if you'd want to find persons based on company, i.e. ou=company1 regardless of which country the solution would be much more complicated. In that case you'd need to first find all the matching companies and then loop over these and find the corresponding persons based on each respective company's DN, as in the example above.