def _removepassEnt(self, password_attr, ent):
    if (len(ent[password_attr]) == 1):
        ent[password_attr] = '{CRYPT}'
    elif (len(ent[password_attr]) == 2):
        if ('{CRYPT}' in ent[password_attr][1]):
            ent[password_attr][1] = '{CRYPT}'
        else:
            ent[password_attr] = ['{CRYPT}']
    else:
        raise Exception('What ?')
    ent[SHADOWLASTCHANGE] = (10000 + 1)
    ent.save()
def _removepassEnt(self, password_attr, ent):
    if (len(ent[password_attr]) == 1):
        ent[password_attr] = '{CRYPT}'
    elif (len(ent[password_attr]) == 2):
        if ('{CRYPT}' in ent[password_attr][1]):
            ent[password_attr][1] = '{CRYPT}'
        else:
            ent[password_attr] = ['{CRYPT}']
    else:
        raise Exception('What ?')
    ent[SHADOWLASTCHANGE] = (10000 + 1)
    ent.save()