This set of patches allows SSSD to use the more reliable entryUSN
against FreeIPA (and USNchanged against AD) when performing
enumerations.
If entryUSN(USNchanged) is not detected as available by checking rootdse
for lastUSN(highestCommittedUSN) then we fall back to use
modifyTimestamp which is fine in non-multimaster setups.
This set comprises 4 patches.
1. pass sdap_id_ctx to sdap_id_op functions (needed later).
2. cleanup unused vars and functions about rootdse to avoid confusion
3. add connection checks to test if USNs are available.
4. Change the code around to use the best USN method available and
fallback to the previous modifyTimestamp if not.
These pacthes have been briefly tested against a FreeIPA server with
the entryUSN configuration patch (still unpushed upstream) and all seem
to working fine.
Simo.
--
Simo Sorce * Red Hat, Inc * New York