Details
Description
I've implemented a LDAP Filter DSL, which can be used in the following way:
def filter = FilterUtil.build {
and {
or {
like "cn", "foo*"
like "cn", "bar*"
}
eq "groupMembership", "cn=admingroup,ou=system,o=mycompany"
}
}
assert filter instanceof org.springframework.ldap.filter.Filter
assert filter.encode() == "(&(|(cn=foo*)(cn=bar*))(groupMembership=cn=admingroup,ou=system,o=mycompany))"
I thought it might be useful to have such a feature available in gldapo.
Cheers, sigi
The indentions in the description are destroyed ... See usage.txt in the zip for what I meant.
Cheers, sigi