diff --git a/radius_auth.py b/radius_auth.py index c8d432f6..9bee12e3 100755 --- a/radius_auth.py +++ b/radius_auth.py @@ -36,7 +36,7 @@ def do_auth(mac): # Mac dans la base LDAP m = crans_ldap(readonly=True).search('mac=%s' % mac)['machine'] if len(m) != 1: - return (-1, "Pb recherche mac (nb résultat !=1)") + return (-1, "Pb recherche mac (nb résultat %d!=1)" % len(m)) # N'appartient pas au Crans et n'a pas de prise attribuée # donc sur uplink ou switch non filtré