[SSSD] [PATCHES] Use entry USN when available

Simo Sorce ssorce at redhat.com
Tue Dec 7 18:58:56 UTC 2010


On Tue, 07 Dec 2010 13:28:15 -0500
Stephen Gallagher <sgallagh at redhat.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 12/07/2010 04:34 AM, Sumit Bose wrote:
> > On Mon, Dec 06, 2010 at 10:29:02AM -0500, Simo Sorce wrote:
> >> On Mon, 6 Dec 2010 15:29:44 +0100
> >> Sumit Bose <sbose at redhat.com> wrote:
> >>
> >>>>
> >>>>>>> OpenLDAP users might be happy if sssd would be able to
> >>>>>>> autodetect OpenLDAP and use entryCSN. Do you think check for
> >>>>>>> the OpenLDAProotDSE objectclass would be sufficient here?
> >>>>>>
> >>>>>> Yes, give me the details and I can add that easily.
> >>>>>
> >>>>> I think the only detail is the OpenLDAProotDSE objectclass. I
> >>>>> haven't found anything else in the OpenLDAP rootDSE which can
> >>>>> help here.
> >>>>
> >>>> Which attribute does openLdap uses on entries ?
> >>>> entryUSN or USNChanged ?
> >>>
> >>> entryCSN, see http://www.openldap.org/faq/data/cache/1145.html for
> >>> details.
> >>
> >> It is not clear to me that entryCSN is server specific and always
> >> orders new entries at top, the format is also quite complex.
> >> It is also not clear if access to it is available to anonymous
> >> clients.
> > 
> > iirc entryCSN is used by OpenLDAP during replication so I would
> > expect that newer entries get "larger" entryCSNs.
> > 
> >>
> >> If you do not mind I would defer implementation of its support to a
> >> separate ticket/patch.
> > 
> > ok, let's move this into a new ticket. This means
> > 
> > ACK
> > 
> > to the current version of the patches.
> 
> 
> Nack: fails to compile
> 
> 
> ../src/providers/ldap/ldap_id.c: In function 'sdap_check_online_done':
> ../src/providers/ldap/ldap_id.c:676:5: error: implicit declaration of
> function 'sdap_cli_connect_recv_ext'

Oops should have rebuilt from scratch when I finally merged
sdap_cli_connect_recv() and sdap_cli_connect_recv_ext().

Attached rebased patchset that compiles properly.

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/20101207/22329cad/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/20101207/22329cad/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: 13830 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101207/22329cad/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: 31397 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101207/22329cad/attachment-0003.bin>


More information about the sssd-devel mailing list