def asLDIF(dn, attributes):
    s="dn: %s\n"%dn
    for k,vs in attributes:
        for v in vs:
            s=s+attributeAsLDIF(k, v)
    s=s+"\n"
    return s
dataset/ETHPy150Open antong/ldaptor/ldaptor/protocols/ldap/ldif.py/asLDIF/original