开发者

LDAP search filter expression utility or library

开发者 https://www.devze.com 2023-03-14 20:52 出处:网络
in this project we intend to reuse ldap search expressions for a system other than the LDAP server itself.

in this project we intend to reuse ldap search expressions for a system other than the LDAP server itself.

The idea is to fetch the expression - something like (|(attr1='A')(!(attr2='1'开发者_开发百科))) - and perform certain actions. Does anybody know of the existence of a library or utility to interpret such expressions ?

Thanks


It's a polish expression, for that you can use ANTLR 3 I think the grammar exists. Parhaps the thing you are looking for is there.


The UnboundID LDAP SDK for Java includes a Filter class that can be used to construct and parse search filter strings like the one you have listed. The Filter class also provides a matchesEntry method that can be used to determine whether a filter matches a provided entry using only client-side logic.

0

精彩评论

暂无评论...
验证码 换一张
取 消