From c44dc7748b968c2aaacbfeebd0700c7f3ccfe49b Mon Sep 17 00:00:00 2001 From: dimino Date: Thu, 6 Sep 2007 17:55:18 +0200 Subject: [PATCH] c'etait pour des tests mais finalement c'est pas plus mal comme ca. darcs-hash:20070906155518-7b604-a88be7d3e5dca19a83f621cc71c5264ed8735bb0.gz --- radius_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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é