HI Arif, Thanks for your patch, I opened a xCAT bug to track this issue, to make sure it will not be forgotten. https://sourceforge.net/tracker/?func=detail&aid=3463757&group_id=208749&atid=1006945
I understand the code is to add the long hostname into the knownhosts file, I need to have some quick check with the original owner of makeknownhosts.pm to see if the long hostname is omitted intentionally. Thanks, ------------------------------------------------------------------------- Li,Guang Cheng (李光成) IBM China System Technology Laboratory Email: [email protected] Address: Building 28, ZhongGuanCun Software Park, No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC 北京市海淀区东北旺西路8号中关村软件园28号楼 邮编: 100193 Arif Ali <[email protected] .uk> To "Mailing list, xCAT" 2011-12-22 17:15 <[email protected]> cc Please respond to Subject xCAT Users [xcat-user] Patch for Mailing list makeknownhosts <xcat-user@lists. sourceforge.net> Hi devs, A patch that will be useful for most of my installations. I tend to need to create my own scripts around the main makeknownhosts; but the following patch would deffo help. This helps with host-based authentication --- makeknownhosts.pm.orig 2011-12-21 18:00:39.579336162 +0000 +++ makeknownhosts.pm 2011-12-21 18:33:12.631336016 +0000 @@ -250,10 +250,21 @@ } chomp($ip_address); + my $domain; + my $sitetab = xCAT::Table->new('site'); + my $stab = $sitetab->getAttribs({key=>'domain'},['value']); + if ($stab and $stab->{value}) { + $domain = $stab->{value}; + } + if (defined $hostname) { $line = "\""; $line .= "$hostname,"; + if (defined $domain) + { + $line .= "$hostname.$domain,"; + } $line .= "$ip_address"; $line .= " "; $line .= $output[0]; regards, -- Arif Ali catch me on freenode IRC, username: arif-ali ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
<<inline: graycol.gif>>
<<inline: pic32047.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
