Re: Limitations on filters?

Roland Hedberg (Roland.Hedberg@umdac.umu.se)
Tue, 13 Feb 1996 12:31:08 +0100 (MET)

On Tue, 13 Feb 1996, Hallvard B Furuseth wrote:

> > My question is: Is there a limitation on filters in ldap?
>
> Limits can be imposed on searches under an object in X.500, with the
> sacl (searchacl) attribute in the base object.
>
> > When executing a search with this filter:
> > (&(objectClass=*)(|(cn~=Bre)(o~=Bre)(ou~=Bre)))
> > I receive about ten entries at a certain base.
> > But when adding a few more "or-parts" to the filter, I get NO results on the s
> - ame
> > search-base!
> > This is the new filter:
> > (&(objectClass=*)(|(cn~=Bre)(o~=Bre)(ou~=Bre)(sn~=Bre)(l~=Bre)(c~=Bre)))
>
> Does the part you added, work by itself? I.e. this filter:
>
> (&(objectClass=*)(|(sn~=Bre)(l~=Bre)(c~=Bre)))
>

It shouldn't since 'Bre' is an invalid country code !!
Country codes can only be two characters long.
So skip c~=Bre and check if it works .

-- Roland

UFN: Roland Hedberg, Umdac, Umea Universitet, Sweden
"Share life or Perish!" - Peggy McIntosh