From c4e88110568c276af4e83ab4579a1af3ba13eb9a Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 7 Jul 2018 17:39:49 +0200 Subject: [PATCH] check RDN value --- lam/templates/upload/massBuildAccounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/upload/massBuildAccounts.php b/lam/templates/upload/massBuildAccounts.php index 98aff7c4..a555c91a 100644 --- a/lam/templates/upload/massBuildAccounts.php +++ b/lam/templates/upload/massBuildAccounts.php @@ -205,7 +205,7 @@ if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) { // set DN foreach ($accounts as $i => $account) { // check against list of possible RDN attributes - if (!in_array($data[$i][$ids['dn_rdn']], $rdnList)) { + if (!in_array($data[$i][$ids['dn_rdn']], $rdnList) || !isset($account[$data[$i][$ids['dn_rdn']]])) { $errors[] = array(_('Account %s:') . ' dn_rdn ' . $account[$data[$i][$ids['dn_rdn']]], _("Invalid RDN attribute!"), array($i)); } else {