Commit 09c5d69a authored by Gabriel Detraz's avatar Gabriel Detraz

AJout les machines wifi sur le bon slash

parent cd00c423
......@@ -31,7 +31,7 @@ def create_machine(user, type, mac, host, club=None, adherent=None):
"""
Crée une machine pour l'utilisateur ldap `user`
où `type` est
"wifi-adh", "wifi-adh-v6", "fil" etc.
"wifi-new-adherents", "fil" etc.
Et `club` est un éventuel cid (int).
"""
ldif = {
......@@ -45,7 +45,7 @@ def create_machine(user, type, mac, host, club=None, adherent=None):
else:
luser = get_user(user)
with conn_pool.get_conn(user).newMachine(luser.dn, type, ldif, user.username) as machine:
if type in ["wifi-adh", "wifi-adh-v6"]:
if type in ["wifi-new-adherents"]:
machine['ipsec']=u'auto'
machine.create(login=user.username)
conn_pool.get_user(user, refresh=True)
......@@ -240,7 +240,7 @@ class Machine(dict):
self['realm']='adherents'
elif type == 'wifi':
self['type']='machineWifi'
self['realm']='wifi-adh'
self['realm']='wifi-new-adherents'
else:
raise ValueError(_('type %s inconnu' % type))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment