c'etait pour des tests mais finalement c'est pas plus mal comme ca.
darcs-hash:20070906155518-7b604-a88be7d3e5dca19a83f621cc71c5264ed8735bb0.gz
This commit is contained in:
parent
e55480aeff
commit
c44dc7748b
1 changed files with 1 additions and 1 deletions
|
@ -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é
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue