[Date Prev][Date Next] [Chronological] [Thread] [Top]

regarding ldap filters "extensible match search"



Hi all,
given the partial tree below, how can I return users in the root, project, and site1 (i.e. dont want to return site2 users). note that site2 might have nested sites. I would rather to perform only one query. I've been playing with the "extensible match search", but site the rootDN is part of the site2DN, it returns the site2 users as well...                                            

                                                          dc=example,dc=com
                                                                    |      |
                                                                    |      |
                                                                    |      ou=users,dc=example,dc=com
                                                                    |
                                                 o=project,dc=example,dc=com
                                                 |                              |             |
                                                 |                              |             |
                                                 |                              |             ou=users,o=project,dc=example,dc=com
                                                 |                              |
                                                 |                              |
         ou=site1,o=project,dc=example,dc=com            ou=site2,o=project,dc=example,dc=com
                                   |                                                                                  |
                                   |                                                                                  |
ou=users, ou=site1,o=project,dc=example,dc=com     ou=users,ou=site2,o=project,dc=example,dc=co