I need to make a query that will search for all users, located in two different OUs.
For example :
base1: "OU=ou2,OU=ou1"
base2 : "OU=ou3,OU=ou1"
How can I do this with LdapTemplate ? I'm using Spring Boot 3.1.1 and Spring Ldap.
I'd like to be able to do this in a single query, but I understand that this isn't possible. If I run two queries, would it be possible to merge the results without having to manually re-sort?
Many thanks for your answers !
This is the solution I applied (for a searching by Fullname, for example) :
This is clearly not ideal, so don't hesitate if you have a better solution. Thank you.