summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-03-20 18:09:32 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-03-20 18:09:32 +0000
commit8e067a866534c627b2f1bce5da1de5c5509af4b7 (patch)
treeab3c7ce092d4a8024ba74695adc3329763c20f41 /src/lib
parentd60d26260f24a145ba5b8f49aec3233f26c37c01 (diff)
downloadbcfg2-8e067a866534c627b2f1bce5da1de5c5509af4b7.tar.gz
bcfg2-8e067a866534c627b2f1bce5da1de5c5509af4b7.tar.bz2
bcfg2-8e067a866534c627b2f1bce5da1de5c5509af4b7.zip
Fix secure mode
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2960 ce84e21b-d406-0410-9b95-82705330c041
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)