diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 38c5843b..1880f504 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -387,7 +387,7 @@ class crans_ldap : def tr(arg) : return preattr(arg)[1] args=map(tr,args) - + if new in serv.keys() : new_args = [] for arg in args : @@ -410,9 +410,6 @@ class crans_ldap : except ldap.ALREADY_EXISTS : # Existe déja => rien à faire pass - except ldap.TYPE_OR_VALUE_EXISTS : - # Pareil - pass def search(self,expression,mode='') : """ @@ -2047,6 +2044,9 @@ class machine(base_classes_crans) : reconf_ip += self._data.get('ipHostNumber',[]) else : reconf_ip = [] + + # On vire les doublons dans reconf_ip + reconf_ip = list(dict(zip(reconf_ip,[None]*len(reconf_ip)))) # Enregistrement self._save()