[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4845) Back-perl is non working



Xavier Beaudouin wrote:

> By the way, I still don't understand why this kind of script was working on
> openldap 2.1 and 2.2.... ?
> 
> Does str2entry() is more picky since openldap 2.3 ?

The fact that something __worked__ doesn't mean it was correct.  That 
code working was apparently the consequence of two bugs canceling each 
other.

str2entry() is not just more picky: it has been __entirely__ rewritten, 
to reduce the performance impact of the related memory allocation, which 
guaranteed orders of magnitude of improvement from 2.0 to 2.3 (the 
amount of fragmented malloc()s was a considerable bottleneck). 
Redesigning code for performance, as well as for stricter adherence to 
specs, is part of its natural evolution.

No surprise that such a careful redesign resulted, as a side effect, in 
a stricter compliance with RFC2589.  The fact that nobody complained up 
to now indicates that strict adherence to specs usually helps in code 
portability.

p.



Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------