LDAP Notifications

Figuring out what the story is with LDAP notifications isn't terribly easy. There are a number of different protocol extensions out there:

The strangest thing about all this is that LCUP is the only one of these that progressed from Internet Draft to RFC, yet neither OpenLDAP nor Fedora Directory Server implement it. SYNC seems to have been proposed by the OpenLDAP crew because when they went to implement LCUP they found that it "requires server implementations to maintain complete history information in order to provide eventually convergent incremental refreshes", which presumably wasn't something that OpenLDAP already did. Yet the working group went ahead and progressed LCUP to RFC and not SYNC.

Anyway, moral of the story is that if you want notifications, then you want PSEARCH if you're using Fedora Directory Server and SYNC if you're using OpenLDAP.

If you're using OpenLDAP's client library, rather than the Mozilla LDAP C SDK, then it's a little tricky since you have to manually create the psearch control and parse the entryChange controls. Here's some example code.

Tagged