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:
		| @@ -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; | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user