Michael Ströder michael at
Mon May 26 09:58:30 CEST 2003

Andrew Thomson wrote:
> Thanks, that's perfect..
> one other question if I may.. how can I modify the following,
> __init__(self, output_file, base64_attrs=None, cols=76, line_sep='\n')

Funny you ask for that. In this minute I've checked in a new version which 
lets you pass in either a ldif.LDIFWriter instance instead or a file-like 

Give it a try:

>     cols
>         Specifies how many columns a line may have before it's
>         folded into many lines.
> to increase the column length.. some of my entries are wrapping.

You really should use a LDIF consumer which correctly processes folded lines 
(see RFC 2849).

Ciao, Michael.

More information about the python-ldap mailing list