Skip Menu |

This queue is for tickets about the Authen-Simple-LDAP CPAN distribution.

Report information
The Basics
Id: 65426
Status: resolved
Priority: 0/
Queue: Authen-Simple-LDAP

People
Owner: Nobody in particular
Requestors: bnordgren [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.2
Fixed in: (no value)



Subject: Typo in Net::LDAP->new()
Started getting "server unavailable" (error 52) when attempting to bind against corporate AD server. All other LDAP mechanisms (python, ldapsearch, apache etc.) continued to work from the same machine. Tracked problem down to this code: my $connection = Net::LDAP->new( $self->host, Port => $self->port, Timeout => $self->timeout, Version => $self->version ); "Port" should be "port", "Timeout" should be "timeout", and "Version" should be "version". I'm using perl 5.12.2 on Archlinux. My last "full system update" was yesterday.
Subject: Re: [rt.cpan.org #65426] Typo in Net::LDAP->new()
Date: Thu, 03 Feb 2011 21:42:33 +0100
To: bug-Authen-Simple-LDAP [...] rt.cpan.org
From: Christian Hansen <christian.hansen [...] mac.com>
3 feb 2011 kl. 21.03 skrev fasdfdsafd via RT: [...] Show quoted text
> Started getting "server unavailable" (error 52) when attempting to > bind > against corporate AD server. All other LDAP mechanisms (python, > ldapsearch, apache etc.) continued to work from the same machine. > Tracked problem down to this code: > > my $connection = Net::LDAP->new( $self->host, > Port => $self->port, > Timeout => $self->timeout, > Version => $self->version > ); > > "Port" should be "port", "Timeout" should be "timeout", and "Version" > should be "version". > > I'm using perl 5.12.2 on Archlinux. My last "full system update" was > yesterday.
Thanks for your report, I'm a bit tied up today and tomorrow, but I'll fix this this weekend. You can workaround this bug if you don't need to specify version or timeout by providing a URI in host. Authen::Simple::LDAP->new( host => 'ldaps://host:1234' ). -- chansen
On Thu Feb 03 15:42:43 2011, christian.hansen@mac.com wrote: Show quoted text
> > 3 feb 2011 kl. 21.03 skrev fasdfdsafd via RT: > > [...] >
> > Started getting "server unavailable" (error 52) when attempting to > > bind > > against corporate AD server. All other LDAP mechanisms (python, > > ldapsearch, apache etc.) continued to work from the same machine. > > Tracked problem down to this code: > > > > my $connection = Net::LDAP->new( $self->host, > > Port => $self->port, > > Timeout => $self->timeout, > > Version => $self->version > > ); > > > > "Port" should be "port", "Timeout" should be "timeout", and "Version" > > should be "version". > > > > I'm using perl 5.12.2 on Archlinux. My last "full system update" was > > yesterday.
> > Thanks for your report, I'm a bit tied up today and tomorrow, but I'll > fix this this weekend. > > You can workaround this bug if you don't need to specify version or > timeout by providing a URI in host. > > Authen::Simple::LDAP->new( host => 'ldaps://host:1234' ).
I also noticed this a long while back, but was hoping this bug would prompt a bugfix. It appears it's still broken... any plans on posting a new version (the fix is really trivial, but would help with software distribution so I don't have to ship my own version of this module).
Thank you for your reports, I have pushed a new release to CPAN which corrects the typos. <https://metacpan.org/release/CHANSEN/Authen-Simple-LDAP-0.3> I'm sorry for the late fix. -- chansen