On Wed, 25 Apr 2012, Uncle Hildegard wrote: > I have a DIT that contains objects like this: > > uid=test,ou=user,ou=sales,o=Testcompany > > Now I want to find out all objects that have "sales" in their DN. Since DN > is not an attribute one can search for <...> Yes you can: (ou:dn:=sales) Philip