Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Critical Bug in Net::LDAP v0.35
I have discovered a critical bug in Net::LDAP 0.35 and submitted the
following ticket:
http://rt.cpan.org/Ticket/Display.html?id=34878

In 0.35, the Net::Ldap::Util::ldap_error_name subroutine is broken which
means that all functions such as Net::LDAP->code() that return a message
as a constant are broken.

Instead of returning the correct message, Password Policy (PP) constants
are being returned instead.

The most crucial example is that a successful bind or search is
returning LDAP_PP_PASSWORD_EXPIRED (0) instead of LDAP_SUCCESS (0). You
can code around this failure by using resultCode() instead to get the
integer form of the result code, however all current perl modules that
determine results by using the constant names will function unexpectedly.

Please advise me *quickly* if you think for any reason that I have the
wrong end of the stick here, but having passed it by a few colleagues
I'm pretty damn sure this is a bug and a critical one.
--
Kind Regards,

 ________________________________________
__________

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com
 ________________________________________
__________


Report this thread to moderator Post Follow-up to this message
Old Post
Mike Peachey
04-12-08 12:41 AM


Re: Critical Bug in Net::LDAP v0.35
Hi Mike,

On Friday, 11. April 2008, Mike Peachey wrote:
> I have discovered a critical bug in Net::LDAP 0.35 and submitted the
> following ticket:
> http://rt.cpan.org/Ticket/Display.html?id=34878
>
> In 0.35, the Net::Ldap::Util::ldap_error_name subroutine is broken which
> means that all functions such as Net::LDAP->code() that return a message
> as a constant are broken.
>
> Instead of returning the correct message, Password Policy (PP) constants
> are being returned instead.
>
> The most crucial example is that a successful bind or search is
> returning LDAP_PP_PASSWORD_EXPIRED (0) instead of LDAP_SUCCESS (0). You
> can code around this failure by using resultCode() instead to get the
> integer form of the result code, however all current perl modules that
> determine results by using the constant names will function unexpectedly.
>
> Please advise me *quickly* if you think for any reason that I have the
> wrong end of the stick here, but having passed it by a few colleagues
> I'm pretty damn sure this is a bug and a critical one.

You are right, this is a bug.

I committed a patch to perl-ldap-SVN to fix it.
For you convenience I also append it to this posting.

Please test and report back.

CU
PEter

--
Peter Marschall
peter@adpm.de


Report this thread to moderator Post Follow-up to this message
Old Post
Peter Marschall
04-17-08 01:05 AM


Re: Critical Bug in Net::LDAP v0.35
Peter Marschall wrote:
> Hi Mike,
>
> On Friday, 11. April 2008, Mike Peachey wrote: 
>
> You are right, this is a bug.
>
> I committed a patch to perl-ldap-SVN to fix it.
> For you convenience I also append it to this posting.
>
> Please test and report back.

I have tested the patch with a test perl script and it resolves the
problem (obviously, given the way the array is built).

While the patch works and I heartily thank you for it, my primary
concern is getting the fix out to the Net::LDAP distribution on CPAN.

For my own purposes I have remained on 0.34 but I maintain an LDAP and
DBI external authentication extension for RT from BestPractical and for
those who are just taking up the extension and coming with up to date
perl installs the extension is broken.

I'm not familiar with the development hierarchy and roll-out process for
Net::LDAP, do you think it may be put to a release soon, or should I
code a new version of my extension using integer result codes and
release it?

Thanks for your help.
--
Kind Regards,

 ________________________________________
__________

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com
 ________________________________________
__________

Report this thread to moderator Post Follow-up to this message
Old Post
Mike Peachey
04-17-08 11:28 AM


Re: Critical Bug in Net::LDAP v0.35
On 16 Apr 2008, at 21:39, Mike Peachey wrote:

> Peter Marschall wrote: 
>
> I have tested the patch with a test perl script and it resolves the
> problem (obviously, given the way the array is built).
>
> While the patch works and I heartily thank you for it, my primary
> concern is getting the fix out to the Net::LDAP distribution on CPAN.
>
> For my own purposes I have remained on 0.34 but I maintain an LDAP
> and DBI external authentication extension for RT from BestPractical
> and for those who are just taking up the extension and coming with
> up to date perl installs the extension is broken.
>
> I'm not familiar with the development hierarchy and roll-out process
> for Net::LDAP, do you think it may be put to a release soon, or
> should I code a new version of my extension using integer result
> codes and release it?

I think we should release a new version ASAP. Graham does all the
release engineering...

Cheers,

Chris

Report this thread to moderator Post Follow-up to this message
Old Post
Chris Ridd
04-18-08 12:56 AM


Re: Critical Bug in Net::LDAP v0.35
On Apr 17, 2008, at 12:51 PM, Chris Ridd wrote:
> I think we should release a new version ASAP. Graham does all the
> release engineering...

I will do a release this wend (or before if I get time) and also a
new release of Authen::SASL

Graham.


Report this thread to moderator Post Follow-up to this message
Old Post
Graham Barr
04-18-08 12:56 AM


Re: Critical Bug in Net::LDAP v0.35
Graham Barr wrote:
> On Apr 17, 2008, at 12:51 PM, Chris Ridd wrote: 
>
> I will do a release this wend (or before if I get time) and also a
> new release of Authen::SASL
>
> Graham.
>

Much appreciated. Thanks for the quick responses everyone. I'll get back
to coding my latest feature request :)
--
Kind Regards,

 ________________________________________
__________

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com
 ________________________________________
__________

Report this thread to moderator Post Follow-up to this message
Old Post
Mike Peachey
04-18-08 10:24 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

LDAP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:36 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.