通过HTTP访问LDAP目录? [英] Accessing an LDAP directory via HTTP?

查看:78
本文介绍了通过HTTP访问LDAP目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从本身不支持该协议的设备访问LDAP目录.我希望能够通过HTTP操作发送请求,运行LDAP查询并以JSON返回结果.我试图通过像LDAP客户端一样的Node.js服务器来执行此操作.您可以在此处查看Gist.

I'm attempting to access an LDAP directory from devices that do not natively support the protocol. I want to be able to send requests via HTTP actions, run LDAP queries, and return the results in JSON. I attempted to do this via a Node.js server that acts like an LDAP client. You can view the Gist here.

几个问题:

  1. 这有可能吗?

  1. Is this even possible?

身份验证的最佳做法是什么?

What are some best practices for authentication?

谢谢!

推荐答案

编写自定义 http-to-everth 桥始终是可能的,只要您的堆栈同时支持- http 任何.

Writing a custom http-to-whatever bridge is always possible as long as your stack supports both - http and whatever.

您可以看看 opendj-rest2ldap-servlet ,其中提供了一个通用的LDAP-HTTP/REST桥.某些版本的源代码可在以下位置找到: https://svn.forgerock.org/opendj/trunk/opendj/opendj-rest2ldap/

You may have a look at opendj-rest2ldap-servlet which provides a generic LDAP-HTTP/REST bridge. Some version of the source code available at: https://svn.forgerock.org/opendj/trunk/opendj/opendj-rest2ldap/

这篇关于通过HTTP访问LDAP目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆