We have a local
LDAP directory that provides basic contact information about our user community. We would like to integrate this into some third-party hosted services that allow us to implement widgets that run arbitrary Javascript.
In order to connect Javascript to our
LDAP directory, I would like to set up a simple LDAP-to-HTTP proxy that would accept HTTP GET requests, translate them into an appropriate
LDAP query, and respond with directory information as JSON-encoded data.
In an ideal world, something like this:
GET /
[email protected]
Would get me something like this:
{
"cn": "Bob Person",
"title": "System Administrator",
"sn": "Person",
"mail": "
[email protected]",
"telepehoneNumber": "617-555-1212",
"givenName": "Bob"
}
(And this obviously assumes that the web application has locally configured information about what base DN to use, how to authenticate, etc).
I guess I could write one...but surely something like this already exists?
UPDATE
The consensus seems to be that there isn't a pre-existing solution out there and that I should just get off my lazy derriere and write one. So I did, and it's here. It's not especially pretty, but it works for my prototyping and I figure maybe someone else will find it useful someday.