i'm implementing custom partition on apache ds (implementing org.apache.directory.server.core.partition.partition).
i´m able searches on custom partition, if want use filter (i.e. objectclass=”person”) partition returns entries found, no filtering @ all.
can give example of how filter entries returned "search" method using custom partition?
also, highly appreciated if can point me complete examples of implementing search method. need more information, specially regarding search scopes (object, onelevel or subtree).
i'm using version 1.5.5 of apacheds.
thanks lot!
a directory tree. when search (write search protocol data unit) ldap in directory give :
- the dn of nod begin search
- the attributes want retreive
- the filter ((&(objectclass=*))
- the deepness of search
for deepness you've got 3 possibilities
- subtree : try match filter in recursive search begining nod.
- onelevel : try match filter in nods under begining nod.
- base : try match filter nod attributes (used rootdse attributes).
if come problem. careful fact there implementation of type defined in schema. types derived type top
. if take example type inetorgperson
can see in schema type child of organizationalperson
, chil of person
, chil of top
. in particular case inetorgperson
object have objectclass
attribute valued 4 times :
objectclass: top objectclass: person objectclass: organizationalperson objectclass: inetorgperson
so if write search pdu filter (&(objectclass=person)) have objects issued person
, organizationalperson
, inetorperson
types in result.
another thing in search tools if filter bad written or not understood default filter ((&(objectclass=*)) used (this means everything).
Comments
Post a Comment