Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Net::LDAP fails with later versions of IO::Socket::SSL [SEC=UNCLASSIFIED]
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
"Hart, Matthew MR 2"  
View profile  
 More options Nov 2 2011, 2:08 am
Newsgroups: perl.ldap
From: Matthew.Ha...@defence.gov.au ("Hart, Matthew MR 2")
Date: Wed, 2 Nov 2011 17:08:59 +1100
Local: Wed, Nov 2 2011 2:08 am
Subject: Net::LDAP fails with later versions of IO::Socket::SSL [SEC=UNCLASSIFIED]
UNCLASSIFIED

Hey Guys,

I think there is a problem with Net::LDAP using start_tls with later
versions of IO::Socket::SSL. I've just tryed to get perl-ldap-0.43
working with IO-Socket-SSL-1.49, but I kept getting
"LDAP_OPERATIONS_ERROR" errors, which didn't have any detail. By tracing
through the code, at about line 1043:

  if ($sock_class ne ref($sock)) {
    $err = $sock->errstr;
    bless $sock, $sock_class;
  }

  print "ERR: $err\n";

  _error($ldap, $mesg, LDAP_OPERATIONS_ERROR, $err);

The actual value of $err was "Cannot determine peer hostname for
verificationerror:00000000:lib(0):func(0):reason(0)", which didn't seem
to be reported back when I did a:

$result = $ldap->start_tls(%ssl);
if ($result->is_error()){
    print $result->error_name().":
".$result->error_desc()."\n".$result->error_text()."\n";

}

(It just said operations error, which was hard to determine the cause).

So it seems that IO::Socket::SSL 1.49 does some extra checking of peers
at IO-Socket-SSL-1.49 IO/Socket/SSL.pm line 284. I think it is expecting
'PeerHost' or 'PeerAddr' to be passed (or scheme to be 'none' or a
coderef), which Net::LDAP isn't doing in _SSL_context_init_args?

Anyway, long story short, by backgrading IO::Socket::SSL to v1.06, the
issue seems to go away, as these sort of checks are not performed at all
in older versions of the module.

Cheers,

-Matt

IMPORTANT: This email remains the property of the Department of Defence
and is subject to the jurisdiction of section 70 of the Crimes Act 1914.
If you have received this email in error, you are requested to contact
the sender and delete the email.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Marschall  
View profile  
 More options Nov 4 2011, 8:32 am
Newsgroups: perl.ldap
From: pe...@adpm.de (Peter Marschall)
Date: Fri, 4 Nov 2011 13:32:09 +0100
Local: Fri, Nov 4 2011 8:32 am
Subject: Re: Net::LDAP fails with later versions of IO::Socket::SSL [SEC=UNCLASSIFIED]
Hi Matt,

please have a look at the patches in
* https://github.com/gbarr/perl-ldap/pull/3
* https://github.com/gbarr/perl-ldap/pull/4
on Graham's perl-ldap git repository.

In addition to fixing the issue they should add a few other minor glitches as
well as adding some new Controls.

The former one is already included in the next branch of the perl-ldap repo.
For ther latter I'm still hoping that Graham will do the same, and after that
realease a new version.

It would be cool you reported feedback on the mailing list

Peter

--
Peter Marschall
pe...@adpm.de

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Hart, Matthew MR 2"  
View profile  
 More options Nov 6 2011, 5:49 pm
Newsgroups: perl.ldap
From: Matthew.Ha...@defence.gov.au ("Hart, Matthew MR 2")
Date: Mon, 7 Nov 2011 09:49:47 +1100
Local: Sun, Nov 6 2011 5:49 pm
Subject: RE: Net::LDAP fails with later versions of IO::Socket::SSL [SEC=UNCLASSIFIED]
UNCLASSIFIED

Sweet, thanks Peter.

I can't really pull from git at my workplace, so I'll wait for the next
release on CPAN :)

Thanks for all the work guys, it's a great module.

Cheers,

-Matt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Quanah Gibson-Mount  
View profile  
 More options Jan 23 2012, 6:18 pm
Newsgroups: perl.ldap
From: qua...@zimbra.com (Quanah Gibson-Mount)
Date: Mon, 23 Jan 2012 15:18:54 -0800
Local: Mon, Jan 23 2012 6:18 pm
Subject: RE: Net::LDAP fails with later versions of IO::Socket::SSL [SEC=UNCLASSIFIED]

--On Monday, November 07, 2011 9:49 AM +1100 "Hart, Matthew MR 2"

<Matthew.Ha...@defence.gov.au> wrote:
> UNCLASSIFIED

> Sweet, thanks Peter.

> I can't really pull from git at my workplace, so I'll wait for the next
> release on CPAN :)

> Thanks for all the work guys, it's a great module.

Is this the same as <https://rt.cpan.org/Public/Bug/Display.html?id=70795>?

Will there be a new release of perl-ldap soon?  It seems the current
release has some major issues when used with other updated modules, and it
is causing a bit of pain.

Thanks,
Quanah

--

Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »