I don't doubt that, but the question is whether or not the patch is palatable...



________________________________
 From: Quanah Gibson-Mount <qua...@zimbra.com>
To: Doug Wegscheid <dwegsch...@sbcglobal.net>; perl-ldap@perl.org 
Sent: Tuesday, May 7, 2013 12:52 PM
Subject: Re: Reading LDIF files containing controls
 

--On Tuesday, May 07, 2013 7:00 AM -0700 Doug Wegscheid 
<dwegsch...@sbcglobal.net> wrote:

>
> I have a use case for analyzing LDIF dumps of our LDAP directory. The
> dump utility puts some controls in the output file, so Net::LDAP::LDIF
> won't read them, it fails with "Controls only allowed with LDIF change
> entries".
>
> I put a patch on to allow reading of controls for non-change entries by
> specifying controls_always_legal => 1 on the Net::LDAP::LDIF->new() call.

Sounds to me like your dump utility is creating LDIF that violates 
<http://tools.ietf.org/html/rfc2849>

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

Reply via email to