Announcement Announcement Module
Collapse
No announcement yet.
Complex LDAP query() Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Complex LDAP query()

    Hello,

    I was giving a try at the new method to build ldap queries through the LdapQueryBuilder.query() method.
    I can't understand how to imbricate AND and OR statements.

    ( & (objectClass=X) (attribute1=Y) ( | (attribute2=A) (attribute2=B) (attribute2=C) ) )

    Here there's an OR clause inside a AND, but I'm also interested in the opposite.
    Is there any precedence regarding the and() and or() methods ?

    I think the reference documentation should mention some examples on how to translate a plain LDAP query to a query() call.

    Thanks for your help
Working...
X