diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index e8f4ea7f..d865e3f1 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -424,7 +424,7 @@ function buildUploadAccounts($scope, $data, $ids) { // give raw data to modules $errors = array(); $partialAccounts = array(); - for ($i = 0; $i < sizeof($data); $i++) $partialAccounts[$i]['objectClasses'] = array(); + for ($i = 0; $i < sizeof($data); $i++) $partialAccounts[$i]['objectClass'] = array(); for ($i = 0; $i < sizeof($ordered); $i++) { $module = new $ordered[$i]($scope); $errors = $module->build_uploadAccounts($data, $ids, $partialAccounts); diff --git a/lam/lib/modules/posixGroup.inc b/lam/lib/modules/posixGroup.inc index edfde0f6..54e48485 100644 --- a/lam/lib/modules/posixGroup.inc +++ b/lam/lib/modules/posixGroup.inc @@ -55,7 +55,7 @@ class posixGroup extends baseModule { function build_uploadAccounts($rawAccounts, $ids, &$partialAccounts) { $errors = array(); for ($i = 0; $i < sizeof($rawAccounts); $i++) { - if (!in_array("posixGroup", $partialAccounts[$i]['objectClasses'])) $partialAccounts[$i]['objectClasses'][] = "posixGroup"; + if (!in_array("posixGroup", $partialAccounts[$i]['objectClass'])) $partialAccounts[$i]['objectClass'][] = "posixGroup"; if (eregi(".*", $rawAccounts[$i][$ids['posixGroup_cn']])) { // TODO use real regex for group name $partialAccounts[$i]['cn'] = $rawAccounts[$i][$ids['posixGroup_cn']]; }