[SSSD] [PATCHES] Use entry USN when available

Simo Sorce ssorce at redhat.com
Fri Nov 26 23:49:33 UTC 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Pass-sdap_id_ctx-in-sdap_id_op-functions.patch
Type: text/x-patch
Size: 11698 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101126/b7c9c5c4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ldap-remove-variable-that-was-never-assigned-nor-use.patch
Type: text/x-patch
Size: 1785 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101126/b7c9c5c4/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ldap-add-checks-to-determine-if-USN-features-are-ava.patch
Type: text/x-patch
Size: 13218 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101126/b7c9c5c4/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-ldap-Use-USN-entries-if-available.patch
Type: text/x-patch
Size: 31395 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101126/b7c9c5c4/attachment-0003.bin>


More information about the sssd-devel mailing list