diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-11-23 00:28:55 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-11-23 00:28:55 +0000 |
commit | aaef7ec8832866718252bd7b7386b79ea0096c19 (patch) | |
tree | d108734762e0d9ab954487c45b5da9ad74466e0b /src/lib/Server | |
parent | f5121ffb1f3befd8ef85af512a8c6d11b785212b (diff) | |
download | bcfg2-aaef7ec8832866718252bd7b7386b79ea0096c19.tar.gz bcfg2-aaef7ec8832866718252bd7b7386b79ea0096c19.tar.bz2 bcfg2-aaef7ec8832866718252bd7b7386b79ea0096c19.zip |
Metadata: cache session information for all clients that aren't address resolved
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5592 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r-- | src/lib/Server/Plugins/Metadata.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py index 05746f22d..c03e09508 100644 --- a/src/lib/Server/Plugins/Metadata.py +++ b/src/lib/Server/Plugins/Metadata.py @@ -686,8 +686,9 @@ class Metadata(Bcfg2.Server.Plugin.Plugin, self.logger.error("Client %s failed to use client password in secure mode" % \ (address[0])) return False - # populate the session cache - if user != 'root': + + if id_method != 'address': + # populate the session cache self.session_cache[address] = (time.time(), user) return True |