From: Chris R. <chr...@ma...> - 2002-10-23 05:54:44
|
On 22/10/02 8:36 pm, Graham Barr <gb...@po...> wrote: > ----- Forwarded message from Reena John <rp...@ho...> ----- > > Date: Tue, 22 Oct 2002 14:19:36 -0500 > To: gb...@po... > From: Reena John <rp...@ho...> > Subject: Net::LDAP read/write pre-dn info? > > Graham, > > Is there a way using the Net::LDAP module to read/write pre-dn lines in > Net::LDAP? The ldif would be like this (also attached: sample.ldif.txt): > > replica: 163.185.18.246:392 > time: 1028702892 > dn: cn=Francois Leclerc 102494,ou=employee,o=slb,c=AN The LDIF standard (RFC 2849) REQUIRES that the first line in each record be the DN, so your files aren't really LDIF :-) Would subclassing Net::LDAP::LDIF get you your desired behaviour? Cheers, Chris |