HI! I've checked in some modifications to the ldif module. See details on: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/python-ldap/python-ldap/Lib/ldif.py?rev=1.6&content-type=text/vnd.viewcvs-markup Please test. Especially those of you still using Python 1.5.x or prior versions. Ciao, Michael.