fixed the logic when get accounts from ppcdirect or ppchcp tables; supports groups such as cec,hmc,fsp...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11195 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@@ -806,15 +806,15 @@ sub credentials {
|
||||
##############################################################
|
||||
# If no user/passwd found, check if there is a default group
|
||||
##############################################################
|
||||
elsif( ($ent) = $tab->getNodeAttribs( $defaultgrp{$hwtype}, qw(username password)))
|
||||
else
|
||||
{
|
||||
if ( $user_specified)
|
||||
{ # need regx
|
||||
($ent) = $tab->getAttribs( {hcp=>$defaultgrp{$hwtype},username=>$user},qw(password));
|
||||
($ent) = $tab->getAllAttribs( {hcp=>$defaultgrp{$hwtype},username=>$user},qw(password));
|
||||
}
|
||||
else
|
||||
{
|
||||
($ent) = $tab->getNodeAttribs( $defaultgrp{$hwtype}, qw(username password));
|
||||
($ent) = $tab->getNodesAttribs( $defaultgrp{$hwtype}, qw(username password));
|
||||
}
|
||||
if ( $ent){
|
||||
if (defined($ent->{password})) { $pass = $ent->{password}; }
|
||||
|
||||
Reference in New Issue
Block a user