Ruby中的Net LDAP gem:“搜索中无效的响应类型:24"; [英] Net LDAP gem in Ruby: "invalid response-type in search: 24"

查看:94
本文介绍了Ruby中的Net LDAP gem:“搜索中无效的响应类型:24";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用LDAP通过活动ldap下的net ldap gem对我们的数据库进行身份验证.它在我的本地系统上运行良好,当我在控制台中运行它时,但是当我将应用程序发布到生产环境时,最终它开始引发以下错误:

I'm using LDAP to authenticate to our database, via the net ldap gem under active ldap. It works great from my local system, and when I run it in a console, but when I roll my app out to production, eventually it starts throwing this error:

invalid response-type in search: 24
vendor/bundle/ruby/1.9.1/gems/net-ldap-0.2.2/lib/net/ldap.rb:1418:in `block in search

有人以前见过此错误吗?看起来它只是以某种方式使连接变得陈旧了-我有多个Web头,并且一个将失败,而另一个则不会,并且应用程序的简单重启使其暂时消失了.然后又回来了.有任何想法吗?我什至不知道什么是响应类型24.

Has anyone seen this error before? It seems like its simply the connection getting stale in some fashion - I have multiple web heads, and it will fail on one but not the others, and a simple restart of the app makes it go away -- temporarily. Then it comes back. Any ideas? I can't even figure out what response-type 24 is.

推荐答案

因此,有趣的是(这不是TOTAL解决方案),如果我将net-ldap替换为ruby-ldap,此问题将消失.我不知道为什么.

So, interestingly (And this isn't a TOTAL solution), if I switch net-ldap out with ruby-ldap this problem disappears. I have no idea why.

这篇关于Ruby中的Net LDAP gem:“搜索中无效的响应类型:24";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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