Re: Reading LDIF files containing controls
Quanah Gibson-Mount <[email protected]> Tue, 07 May 2013 09:52:35 -0700
| Newsgroups | gmane.comp.lang.perl.modules.ldap |
|---|---|
| Message-ID | <70D64ED640BA4C1725E172E7@[192.168.1.26]> |
--On Tuesday, May 07, 2013 7:00 AM -0700 Doug Wegscheid <[email protected]> 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