]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/portforwarder/templates/authorized_keys.erb
We use "keyinfo" in all kinda of places. Rename it to something more generic
[dsa-puppet.git] / modules / portforwarder / templates / authorized_keys.erb
index ff38994b1de56a365d2b284c1d2ce43cb1252e2c..d119bf2fe544ea3293d6c2e40d04b01b2400a8a8 100644 (file)
@@ -29,7 +29,7 @@ config.each_pair do |sourcehost, services|
 
        if allowed_ports.length > 0
                sshkey = getportforwarderkey(sourcehost)
-               remote_ip = keyinfo[sourcehost][0]['ipHostNumber'].join(',')
+               remote_ip = ldapall[sourcehost]['ipHostNumber'].join(',')
                local_bind = '127.101.%d.%d'%[ (sourcehost.hash / 256 % 256), sourcehost.hash % 256 ]
 
                lines << "# from #{sourcehost}"