summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-07-14 20:45:29 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-07-14 20:45:29 +0000
commit9e6d589d2d1b3ed536354bf7ec61601d06cad75b (patch)
tree247e34b8d3f7178de4d89de283d34501ca3f6034 /src
parent1ef918da9e4189dda27d627eb2d1491f627f2128 (diff)
downloadbcfg2-9e6d589d2d1b3ed536354bf7ec61601d06cad75b.tar.gz
bcfg2-9e6d589d2d1b3ed536354bf7ec61601d06cad75b.tar.bz2
bcfg2-9e6d589d2d1b3ed536354bf7ec61601d06cad75b.zip
SSHbase: add an error message for non-resolving clients
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5326 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/SSHbase.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/SSHbase.py b/src/lib/Server/Plugins/SSHbase.py
index 250882790..9f2f9a789 100644
--- a/src/lib/Server/Plugins/SSHbase.py
+++ b/src/lib/Server/Plugins/SSHbase.py
@@ -88,9 +88,13 @@ class SSHbase(Bcfg2.Server.Plugin.Plugin,
pubkeys = [pubk for pubk in self.entries.keys() \
if pubk.find('.pub.H_') != -1]
pubkeys.sort()
+ badnames = set()
for pubkey in pubkeys:
hostname = pubkey.split('H_')[1]
if hostname not in names:
+ if hostname not in badnames:
+ badnames.add(hostname)
+ self.logger.error("SSHbase: Unknown host %s; ignoring public keys" % hostname)
continue
self.__skn += "%s %s" % (','.join(names[hostname]),
self.entries[pubkey].data)