def ParseLDIF(f, ignore_attrs=None, maxentries=0):
 ldif_parser = LDIFRecordList(f, ignored_attr_types=ignore_attrs, max_entries=maxentries, process_url_schemes=0)
 ldif_parser.parse()
 return ldif_parser.all_records

def ParseLDIF ( f , ignore_attrs = None , maxentries = 0 ) : ldif_parser = LDIFRecordList ( f , ignored_attr_types = ignore_attrs , max_entries = maxentries , process_url_schemes = 0 ) ldif_parser . parse ( ) return ldif_parser . all_records
parse ldif records read from file .