summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Metadata.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index b5400f6b8..01893ea4a 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -352,6 +352,12 @@ class Metadata(Bcfg2.Server.Plugin.Plugin):
self.logger.error("Client %s failed to use either allowed password" % \
(address[0]))
return False
+ else:
+ # client in secure mode and has a client password
+ if password != self.passwords[client]:
+ self.logger.error("Client %s failed to use client password in secure mode" % \
+ (address[0]))
+ return False
# populate the session cache
if user != 'root':
self.session_cache[address] = (time.time(), user)