用于将 jpegPhoto 添加到结果中的 LDAP 代理
我想构建或实现某种 LDAP 代理,它将拦截来自我们公司服务器的 LDAP 响应,并将 jpegPhoto 添加到每个条目,该条目将从我们的 Intranet 加载人员图像(即 http://intranet.biz/[电子邮件受保护]< /span>)。
我的第一个想法是设置一个带有重写过滤器的 Squid 代理。 OpenLDAP 手册页似乎还提到它可以充当代理(也许使用 slapo-rwm 来添加 jpegPhoto?)。我对 OpenLDAP 不是很熟悉,也不知道如何实现它。
最好的解决方案是什么?有什么例子吗?
I want to build or implement some sort of LDAP proxy that will intercept the LDAP response from our corporate server and tack on a jpegPhoto to each entry which will load the persons image from our intranet (i.e. http://intranet.biz/[email protected]).
My first thought is to setup a Squid proxy with a rewrite filter. The OpenLDAP man pages also seems to mention that it can act as a proxy (perhaps using slapo-rwm to add jpegPhoto?). I'm not very familiar with OpenLDAP and I'm not sure how to implement this.
What's the best solution? Any examples?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能应该研究 openldap 的覆盖层及其提供的代理后端。 “半透明”覆盖层可能是一个合适的起点。
You should probably look into openldap's overlays combined with the proxy backends they offer. The 'translucent' overlay might be an appropriate starting point.
非常困难。您必须编写一些可以完全解析 LDAP 响应并向其添加所需属性的内容。有多种可用的 LDAP API 可以为您做到这一点,但这将是一个艰难的过程。您是否考虑过将 jpeg 批量移动到 LDAP 数据库中?
Very difficult. You will have to write something that can completely parse an LDAP response and add the required attributes to it. There are various LDAP APIs available that can do that for you but it will be a slog. Have you considered bulk-moving the jpegs into the LDAP database?