From: Mark Huang Date: Tue, 30 Jan 2007 23:08:58 +0000 (+0000) Subject: - notify node owners about authentication failures X-Git-Tag: pycurl-7_13_1~44 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=c348a3b1e8b7333d7f9ad17be6991aca8539c77e - notify node owners about authentication failures --- diff --git a/PLC/Auth.py b/PLC/Auth.py index bb62c09..0bac9db 100644 --- a/PLC/Auth.py +++ b/PLC/Auth.py @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: Auth.py,v 1.10 2007/01/04 16:01:28 mlhuang Exp $ +# $Id: Auth.py,v 1.11 2007/01/11 05:28:21 mlhuang Exp $ # import crypt @@ -18,6 +18,7 @@ from PLC.Persons import Persons from PLC.Nodes import Node, Nodes from PLC.Sessions import Session, Sessions from PLC.Peers import Peer, Peers +from PLC.Boot import notify_owners class Auth(Parameter): """ @@ -234,7 +235,8 @@ class BootAuth(Auth): method.caller = node except PLCAuthenticationFailure, fault: - # XXX Send e-mail + if nodes: + notify_owners(method, node, 'authfail', include_pis = True, include_techs = True, fault = fault) raise fault class AnonymousAuth(Auth):