[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Enhancing back-sock to use JSON
- To: openldap-devel@openldap.org
- Subject: Re: Enhancing back-sock to use JSON
- From: Conrad Steenberg <conrad.steenberg@gmail.com>
- Date: Thu, 19 Feb 2015 09:29:12 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:reply-to:to:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=26JE6cQz/b+mO6qjI22aamb4PQtz0lGWqlk7jEUorBw=; b=Z6TSOqhOCHkx541/64FfKBE3n+IU41mRJ4rE6jPoSYkfs+UIOcy+xa4efJPmuL70Rw oN4NdxjPAtoMpaCzareDIUflgg/+gPcaq1OeAeAu1OsATSqJsISXXM+8GrTJiElYez8L PDKw+f/raKLCYmlYjQh9SqPS7YZcZEg7BuiNzbzSUuoSEbG9Mww02M4BT2Ktag9etu6j iITHmR0QIn8trdxYYbiqmJgx5P+MGwrMRjTm2r4STs52NieLzDJ8k+49bpuq3bW3+hci sqxATfzDcDXEeXLpUExlMnSjthpf8iXMd11udNPCXxjSS8GoOW7/XEs5XAwOz+k4tqQO 73/w==
- In-reply-to: <31DE0D94-3788-4D7D-A450-15D42501575D@baltic-online.de>
- References: <8E704987-829E-411D-8F66-FBA041C5BF2C@opencsw.org> <31DE0D94-3788-4D7D-A450-15D42501575D@baltic-online.de>
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/
>