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

Re: avoid line-wrap in output of slapcat



OpenLDAP Mailing List wrote:
> 
> There is a perl module (LDAP::LDIF?) that handles this. I also wrote an
> ldif-parse Tcl script that handles this situation as well.
> 
> I imagine there is a C fucntion that also does this (check out
> ldapadd.c) as well.
> 
> What language will you be using?

perl probably. I don't need detailed ldif parsing however, and i'm
afraid using LDAP::LDIF will cost me much performance.

slapadd does str2entry(), just as slapcat dies entry2str(). They may
be usable, but it's overkill as well.

Probably the easiest way is to run the stream through a custom
program that replaces newline-space by nothing. That's not the
prettiest way, however.

Regards,

rolek

--
1A First Alternative rolek@alt001.com    www.alt001.com
Linvision BV         rolek@linvision.com (www|devel).linvision.com
--