Fix templates not using WINACCOUNTDATA inadvertently disabling local admin access

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14988 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-01-24 20:09:19 +00:00
parent bc33e681e0
commit d478707749
7 changed files with 8 additions and 26 deletions

View File

@ -281,8 +281,8 @@ sub windows_account_data {
if ($passtab) {
my $passent = $passtab->getAttribs({key=>"system",username=>"Administrator"},['password']);
if ($passent and $passent->{password}) {
$useraccountxml="<AdministratorPassword>\n<Value>".$passent->{password}."</Value>\n<PlainText>true</PlainText>\n</AdministratorPassword>\n";
$useraccountxml.="<!-- Plaintext=false would only protect against the most cursory over the shoulder glance, this implementation opts not to even give the illusion of privacy by only doing plaintext. -->\n";
$useraccountxml="<AdministratorPassword>\r\n<Value>".$passent->{password}."</Value>\r\n<PlainText>true</PlainText>\r\n</AdministratorPassword>\r\n";
$useraccountxml.="<!-- Plaintext=false would only protect against the most cursory over the shoulder glance, this implementation opts not to even give the illusion of privacy by only doing plaintext. -->\r\n";
$localadminenabled=1;
}
}

View File

@ -74,10 +74,7 @@
<FirstLogonCommands>
</FirstLogonCommands>
<UserAccounts>
<AdministratorPassword>
<Value>#TABLE:passwd:key=system,username=Administrator:password#</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
#WINACCOUNTDATA#
</UserAccounts>
</component>
</settings>

View File

@ -86,10 +86,7 @@
<FirstLogonCommands>
</FirstLogonCommands>
<UserAccounts>
<AdministratorPassword>
<Value>#TABLE:passwd:key=system,username=Administrator:password#</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
#WINACCOUNTDATA#
</UserAccounts>
</component>
</settings>

View File

@ -73,10 +73,7 @@
<FirstLogonCommands>
</FirstLogonCommands>
<UserAccounts>
<AdministratorPassword>
<Value>#TABLE:passwd:key=system,username=Administrator:password#</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
#WINACCOUNTDATA#
</UserAccounts>
</component>
</settings>

View File

@ -83,10 +83,7 @@
<FirstLogonCommands>
</FirstLogonCommands>
<UserAccounts>
<AdministratorPassword>
<Value>#TABLE:passwd:key=system,username=Administrator:password#</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
#WINACCOUNTDATA#
</UserAccounts>
</component>
</settings>

View File

@ -74,10 +74,7 @@
<FirstLogonCommands>
</FirstLogonCommands>
<UserAccounts>
<AdministratorPassword>
<Value>#TABLE:passwd:key=system,username=Administrator:password#</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
#WINACCOUNTDATA#
</UserAccounts>
</component>
</settings>

View File

@ -84,10 +84,7 @@
<FirstLogonCommands>
</FirstLogonCommands>
<UserAccounts>
<AdministratorPassword>
<Value>#TABLE:passwd:key=system,username=Administrator:password#</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
#WINACCOUNTDATA#
</UserAccounts>
</component>
</settings>