This commit is contained in:
Z. Cliffe Schreuders
2019-02-07 15:39:09 +00:00
parent 16b5d91951
commit acec842309
4 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ class AccountGenerator < StringEncoder
self.module_name = 'Account Generator / Builder'
self.username = ''
self.password = ''
self.groups = ''
self.groups = []
self.super_user = ''
self.strings_to_leak = []
self.data_to_leak = []
@@ -25,7 +25,7 @@ class AccountGenerator < StringEncoder
account_hash = {}
account_hash['username'] = self.username
account_hash['password'] = self.password
account_hash['groups'] = self.password
account_hash['groups'] = self.groups
account_hash['super_user'] = self.super_user
account_hash['strings_to_leak'] = self.strings_to_leak
account_hash['leaked_filenames'] = self.leaked_filenames

View File

@@ -1,7 +1,7 @@
class groups::init {
$secgen_parameters = secgen_functions::get_parameters($::base64_inputs_file)
$groups = $secgen_parameters['accounts']
$groups = $secgen_parameters['groups']
if $groups {
$groups.each |$group| {

View File

@@ -9,7 +9,7 @@ class parameterised_accounts::init {
parameterised_accounts::account { "parameterised_user_$username":
username => $username,
password => $account['password'],
groups => $account['groups'],
groups => $account['groups'],
super_user => str2bool($account['super_user']),
strings_to_leak => $account['strings_to_leak'],
leaked_filenames => $account['leaked_filenames'],

View File

@@ -54,8 +54,8 @@
<input into_datastore="groups">
<value>staff</value>
<value>team2</value>
<value>team1</value>
<value>team2</value>
</input>
<!-- accounts on the desktop, with the main user as a sudoer, with no flags -->