I’m new to LDAP querying and have googled for an answer but nothing.
Basically, I have OUs of with users within each year (and every year a new OU is added):
Now I can return all OUs with a 2 in it:
But I’m trying to pull out users who are in OUs beginning with 2 and also in TempStaff. All I have is (objectclass=user) which returns everyone – how would I incorporate (&(objectclass=organizationalunit)(ou=2*)) with this query?