Hello,
Just a quick question this time!
I'm trying to refine a search string I setup a while ago, to exclude members of an OU, the issue is that my LDAP search string already uses an EITHER statement.
The current code:
(&(objectCategory=person)(objectClass=user)(|(employeenumber=*)(info=*contractor*)))
So it grabs all users with an employee number or 'contractor' in their info field.
Now, I'd like to exclude users from a Quest OU. However everything I've tried doesn't seem to work... The closest I've gotten:
(&(objectCategory=person)(objectClass=user)(!(OU=*Quest*)(|(employeenumber=*)(info=*contractor*))))Any input would be highly appreciated!