diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 68840c83..f8a204d2 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -3069,7 +3069,7 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3) def __host_alias(self, champ, new): """ Vérification de la validité d'un nom de machine """ # Supression des accents - new = strip_accents(unicode(new, 'utf-8')) + new = strip_accents(decode(new)) l, new = preattr(new) new = new.lower()