ucs: first stab at search functionality
commit198fff3edc7745a78ba9d2b6cb2f1d73f80f626c
authorStefan Becker <chemobejk@gmail.com>
Sun, 14 Dec 2014 17:22:16 +0000 (14 19:22 +0200)
committerStefan Becker <chemobejk@gmail.com>
Sun, 14 Dec 2014 17:22:16 +0000 (14 19:22 +0200)
tree3811e0cfd01b61776b8c276c0c06f4dad66c5059
parentdc2e0d1d02d6fd7c275b3baca0d2afd6b8ce04c0
ucs: first stab at search functionality

If we are on Lync 2013 and contacts have been migrated to UCS then
sipe_core_buddy_search() forwards the search request to
sipe_ucs_search(). We use the EWS FindPeople operation to search the
GAL.

In this first attempt we use given_name as query string.

There seem to be some restrictions:

- "m:Restriction" doesn't accept "persona:ImAddress". So our search
  results contain Personas without ImAddress node which we then need to
  filter out by hand.
- There seems to be no field corresponding to "country". The one that
  comes closest "persona:Locations" doesn't seem to work.
src/core/sipe-buddy.c
src/core/sipe-buddy.h
src/core/sipe-ucs.c
src/core/sipe-ucs.h