Is there a simple LDAP-to-HTTP gateway out there?
Posted
by
larsks
on Server Fault
See other posts from Server Fault
or by larsks
Published on 2012-03-21T18:58:52Z
Indexed on
2012/03/22
5:31 UTC
Read the original article
Hit count: 573
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.
© Server Fault or respective owner