diff options
author | Adrian Likins <alikins@redhat.com> | 2007-09-28 13:15:14 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2007-09-28 13:15:14 -0400 |
commit | c36de46938255f1e16861981db3c59990e6f7b0c (patch) | |
tree | 25444efa37f5c9fbf2901f2e285c0ad127d2978f /minion | |
parent | ac9a10988af2c3ddcc36c8c0f91837d499410d65 (diff) | |
download | third_party-func-c36de46938255f1e16861981db3c59990e6f7b0c.tar.gz third_party-func-c36de46938255f1e16861981db3c59990e6f7b0c.tar.xz third_party-func-c36de46938255f1e16861981db3c59990e6f7b0c.zip |
log the ip address of the requester to the audit.log
also ditch the "INFO" blurb in the log, since we don't really
log at any other level
Diffstat (limited to 'minion')
-rwxr-xr-x | minion/server.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/minion/server.py b/minion/server.py index fcfe537..7c2c149 100755 --- a/minion/server.py +++ b/minion/server.py @@ -192,6 +192,7 @@ class FuncSSLXMLRPCServer(AuthedXMLRPCServer.AuthedSSLXMLRPCServer, if hasattr(self, '_this_request'): r,a = self._this_request p = r.get_peer_certificate() + ip = a[0] cn = p.get_subject().CN sub_hash = p.subject_name_hash() else: @@ -199,7 +200,7 @@ class FuncSSLXMLRPCServer(AuthedXMLRPCServer.AuthedSSLXMLRPCServer, # XXX FIXME - need to figure out how to dig into the server base classes # so we can get client ip, and eventually cert id info -akl - self.audit_logger.log_call(cn, sub_hash, method, params) + self.audit_logger.log_call(ip, cn, sub_hash, method, params) return self.get_dispatch_method(method)(*params) |