git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b6adac0
)
- notify node owners about authentication failures
author
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 30 Jan 2007 23:08:58 +0000
(23:08 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 30 Jan 2007 23:08:58 +0000
(23:08 +0000)
PLC/Auth.py
patch
|
blob
|
history
diff --git
a/PLC/Auth.py
b/PLC/Auth.py
index
bb62c09
..
0bac9db
100644
(file)
--- a/
PLC/Auth.py
+++ b/
PLC/Auth.py
@@
-4,7
+4,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: Auth.py,v 1.1
0 2007/01/04 16:01:28
mlhuang Exp $
+# $Id: Auth.py,v 1.1
1 2007/01/11 05:28:21
mlhuang Exp $
#
import crypt
#
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.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):
"""
class Auth(Parameter):
"""
@@
-234,7
+235,8
@@
class BootAuth(Auth):
method.caller = node
except PLCAuthenticationFailure, fault:
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):
raise fault
class AnonymousAuth(Auth):