
|
If you were logged in you would be able to see more operations.
|
|
|
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
|
|
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 |
Show » |
|
Cheers, sigi