I cannot find a way to get users from LDAP by specific organisational unit. Only able to get all users with:
List users = (List<User>) ldapTemplate.search(base, "(&(objectClass=person))", new UserAttributesMapper());
If I add to query something like (memberOf=OU=Users) I get empty results. What is the correct query for this kind of action?