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