summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/Metadata.py5
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