def addEntry(dn, entry, ldifModFolder):
    newLdif = """dn: %s
changetype: add
""" % dn
    for attr in entry.keys():
        for value in entry[attr]:
            newLdif = newLdif + getMod(attr, value)
    newLdif = newLdif + "\n"
    f = open("%s/%s.ldif" % (ldifModFolder, str(uuid.uuid4())), 'w')
    f.write(newLdif)
    f.close()
dataset/ETHPy150Open GluuFederation/community-edition-setup/static/scripts/import23.py/addEntry/original