On Aug 18, 2005, at 1:02 PM, Gert Buettner wrote:
I have expierienced this kind of hanging, due to wrong UTF-8-
encoding of the ldap-protokoll.
This results in the situation, that both sides think, the other
side should send some bytes.
Try to set the unicode/utf8-bit in perl on the variables $user and
$pwd !
Hm, I could possibly believe that with perl 5.6.x, but 5.8 should
have no issue if you
are up to date with Net::LDAP and Convert::ASN1.
Bob, what versions of perl, Convert::ASN1 and Net::LDAP are you using.
Graham.
Gert
Bob Earl wrote:
Hi Graham,
I am using the Net LDAP module and am having a problem when an
ldap server is not responding. The connection seems ok, it comes
back, but the server was having problems, and subsequently my
client was binding succesfully. The bind is attempted and it
never comes back from it - ie it sits on the bind call
indefinitely. Any ideas on this ? I reproduced this when the
servers were back up by changing ldaps to ldap - which resulted
in a connection but no bind. Any suggestions would be
appreciated. Thanks.
my $ldap = Net::LDAP->new ( "ldaps://someserver.net",
port => 636,
version => 3,
debug=>"Y",
timeout=>5 );
if ($ldap) {
$mesg = $ldap->bind ( $user, password=>$pwd );
.....