Re: Net::LDAP::Util not compatible with RFC4514

Quanah Gibson-Mount <[email protected]> Thu, 20 Sep 2012 10:02:05 -0700
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <5280698846467198A389BAF2@[192.168.1.43]>
--On Thursday, September 20, 2012 9:34 AM +0200 Peter Marschall 
<[email protected]> wrote:

> Hi,
>
> On Wednesday, 19. September 2012, Quanah Gibson-Mount wrote:
>> In playing with Net::LDAP::Util it became apparent that it is not
>> compliant with RFC4514, but instead complies with the older RFC2253.
>> Specifically where #'s in DNs are concerned.  Currently it's expecting #
>> followed by hex digits.  This may not be the case once RFC4514 LDIF is
>> in use.
>>
>> An example DN that it does not handle correctly:
>>
>> dn: zimbraSignatureName=Signature #1,uid=xyz,ou=people,dc=example,dc=com
>>
>> The above is not legal with RFC2253, but it is legal with RFC4514.
>
> You may have a look at the commit
>   https://github.com/marschap/perl-
> ldap/commit/125632a514120ee72912e5fc5b5dd5d1e9c76075
> which tries to fix the issue.
>
> The updated ldap_explode_dn() should be more strictly conforming to
> the RFCs.
> (It is not release ready, because the test files arenot updated yet)
>
> Another issue was found in escape_dn_value() which got fixed in
>   https://github.com/marschap/perl-
> ldap/commit/11ea6b176a0e728d10cc3219cbb84fd8018df5a6
>
> Feedback is very welcome

Thanks Peter!  Should I look at this or perl-ldap 0.48? ;)

--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