Hi Dago, So would the use case for this be to talk to a JSON database like MongoDB via the LDAP protocol?
Thanks! Conrad On Thu, 2015-02-19 at 11:41 +0100, Dagobert Michelsen wrote: > Hi, > > I have made some enhancements to back-sock to use JSON for the passed data > and JSON-RPC > to map LDAP calls to method invocations. The function signatures of the > JSON-RPC calls > are modeled to be similar to the ones used in json2ldap (which does just the > opposite > direction to talk LDAP via JSON-RPC) [1]. The previous hand-crafted format > passed on the > socket was harder to parse and needed a manually built parser whereas now a > standard > library can be used. However, handling the JSON data structures now imposes > an additional > dependency to Jansson (a JSON access library in C) [2]. Jansson itself is > leightweight and > has no dependencies itself. Due to the limited use of back-sock and the > enhanced ease of > use I think it would be acceptable to add this dependency. > > I would be glad if the modification would be possible to be applied to > OpenLDAP and I > happily submit a patch. > > > Best regards > > -- Dago > > > [1] JSON2LDAP interface from JSON-RPC to LDAP > http://connect2id.com/products/json2ldap/web-api#ldap-compare > > [2] Jansson, a C library for reading and writing JSON data structures > http://www.digip.org/jansson/ >