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,8 +91,8 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
|
|||
def modif_machine(machine, attrs):
|
||||
with self.conn.search(dn=machine.dn, scope=0, mode='rw')[0] as machine:
|
||||
for (key, values) in attrs.items():
|
||||
#if values!=u'<automatique>':
|
||||
machine[key]=values
|
||||
if values!=u'<automatique>':
|
||||
machine[key]=values
|
||||
machine.validate_changes()
|
||||
machine.history_gen()
|
||||
machine.save()
|
||||
|
@ -108,8 +108,8 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
|
|||
}
|
||||
with self.conn.newMachine(proprio.dn, realm, ldif) as machine:
|
||||
for (key, values) in attrs.items():
|
||||
#if values!=u'<automatique>':
|
||||
machine[key]=values
|
||||
if values!=u'<automatique>':
|
||||
machine[key]=values
|
||||
if attributs.ipsec in machine.attribs:
|
||||
machine[attributs.ipsec.ldap_name]=attributs.ipsec.default
|
||||
machine.validate_changes()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue