[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: wildcard filter




On Tue, 26 Oct 1999, Kurt D. Zeilenga wrote:

> At 03:27 AM 10/26/99 -0400, Xin Wang wrote:
> >I tried to test if searching using wildcard filter work. 
> >I used an IP address as filter, and I provide
> >filter except other part as: 
> >
> >(if=0.0.2.0*)
> >
> >But the search failed.
> 
> In which way did it fail?
> 
> More information is needed, please do a base search with a
> "(objectclass=*)" filter against one of the entries which has
> an attribute with a value that should match your filter, ie:
> 	ldapsearch -b "dn-of-entry" -s base "(objectclass=*)"
> 
> then replace the filter:
> 	ldapsearch -b "dn-of-entry" -s base "(if=0.0.2.0*)"
>

ldapsearch   -h 127.0.0.1 -b 'cust=Corporation,o=IBM,c=US' -p 8500  -s sub
"(&(objectclass=*))"

take forever to return


ldapsearch   -h 127.0.0.1 -b 'cust=Corporation,o=IBM,c=US' -p 8500  -s sub
"(&(objectclass=*)(if=0.0.2.25))"

return right away


ldapsearch   -h 127.0.0.1 -b 'cust=Corporation,o=IBM,c=US' -p 8500  -s sub
"(&(objectclass=slaprincipal)(if=0.0.2.25))"

return right away

ldapsearch   -h 127.0.0.1 -b 'cust=Corporation,o=IBM,c=US' -p 8500  -s sub
"(&(objectclass=slaprincipal)(if=0.0.2.25*))"
 
never return 

 
> Report the exact commands entered and their output.
> 
> Kurt
> 
> ----
> Kurt D. Zeilenga		<kurt@boolean.net>
> Net Boolean Incorporated	<http://www.boolean.net/>
>