directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hammond, Steve" <steve.hamm...@Polycom.com>
Subject [SHARED] Is there an easy way to compare filters, some with OID and some without?
Date Wed, 18 Feb 2009 15:25:45 GMT
I am trying to compare 2 filters (ExprNode), it happens to be an and
clause, but that is irrelevant.

 

So my code is if ( filter.equals(groupUnimported))   // special filter
case.

 

The problem is that when it gets to this code filter =
(&(2.5.4.0=group)(!(1.2.840.113556.1.4.26=-1)))

And groupUnimported= (&(objectClass=group)(!(ugpid=-1)))

 

I can look at those and know they are equal.  Is there some normalizer I
can run the 2 ExprNodes thru before doing the equals?  I don't want to
do 4 separate equals tests, especially if we start to get bigger filters
that end up as special cases.


Mime
View raw message