Revert "Code qui a introduit plus de bug qu'il n'en a résolu"
This reverts commit 9ea84a34bc
.
This commit is contained in:
parent
450f6c49aa
commit
3418dbb1b1
1 changed files with 4 additions and 4 deletions
|
@ -91,7 +91,7 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
|
||||||
def modif_machine(machine, attrs):
|
def modif_machine(machine, attrs):
|
||||||
with self.conn.search(dn=machine.dn, scope=0, mode='rw')[0] as machine:
|
with self.conn.search(dn=machine.dn, scope=0, mode='rw')[0] as machine:
|
||||||
for (key, values) in attrs.items():
|
for (key, values) in attrs.items():
|
||||||
#if values!=u'<automatique>':
|
if values!=u'<automatique>':
|
||||||
machine[key]=values
|
machine[key]=values
|
||||||
machine.validate_changes()
|
machine.validate_changes()
|
||||||
machine.history_gen()
|
machine.history_gen()
|
||||||
|
@ -108,7 +108,7 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
|
||||||
}
|
}
|
||||||
with self.conn.newMachine(proprio.dn, realm, ldif) as machine:
|
with self.conn.newMachine(proprio.dn, realm, ldif) as machine:
|
||||||
for (key, values) in attrs.items():
|
for (key, values) in attrs.items():
|
||||||
#if values!=u'<automatique>':
|
if values!=u'<automatique>':
|
||||||
machine[key]=values
|
machine[key]=values
|
||||||
if attributs.ipsec in machine.attribs:
|
if attributs.ipsec in machine.attribs:
|
||||||
machine[attributs.ipsec.ldap_name]=attributs.ipsec.default
|
machine[attributs.ipsec.ldap_name]=attributs.ipsec.default
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue