diff --git a/lc_ldap.py b/lc_ldap.py index 335cae4..1923ad8 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -273,7 +273,7 @@ class lc_ldap(ldap.ldapobject.LDAPObject, object): ldif['objectClass'] = ['machineWifi'] assert isinstance(owner, adherent) or isinstance(owner, club) - elif realm in ["adherents", "fil-adherents", "fil-v6", "personnel-ens"]: + elif realm in ["adherents", "fil-v6", "personnel-ens"]: ldif['objectClass'] = ['machineFixe'] assert isinstance(owner, adherent) or isinstance(owner, club) diff --git a/test.py b/test.py index 2ef9878..bd78c90 100755 --- a/test.py +++ b/test.py @@ -171,7 +171,7 @@ except: else: print OK - tests_machines(adherent.dn, ["adherents", "fil-adherents", "fil-v6", "personnel-ens"]) + tests_machines(adherent.dn, ["adherents", "fil-v6", "personnel-ens"]) tests_machines(adherent.dn, ["wifi", "wifi-v6"], ipsec=True)