This commit is contained in:
Josué Tille 2019-05-28 22:13:26 +02:00
parent a951b6f9a2
commit e91ab96cb7
No known key found for this signature in database
GPG key ID: D5E068C6DFA8681D

View file

@ -91,11 +91,11 @@ def read_ldif(file_path, filtred_entries=[]):
from ldif import LDIFRecordList
class LDIFPar(LDIFRecordList):
def handle(self,dn,entry):
def handle(self, dn, entry):
for e in filtred_entries:
if e in entry:
entry.pop(e)
self.all_records.append((dn,entry))
self.all_records.append((dn, entry))
# Open file and read content
try: