From 266877dd620312461f78bc3f1443fc2327d3e078 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 16 Oct 2004 11:29:15 +0000 Subject: [PATCH] fixed missing DN columns in sample CSV --- lam/templates/masscreate.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lam/templates/masscreate.php b/lam/templates/masscreate.php index 8629398f..8c0c5587 100644 --- a/lam/templates/masscreate.php +++ b/lam/templates/masscreate.php @@ -210,6 +210,16 @@ function showMainPage($scope) { echo "\n"; echo "\n"; + // DN attributes + $sampleCSV_head[] = "\"dn_suffix\""; + $sampleCSV_head[] = "\"dn_rdn\""; + echo "\n"; + echo "\n"; + // module attributes for ($m = 0; $m < sizeof($modules); $m++) { if (sizeof($columns[$modules[$m]]) < 1) continue; for ($i = 0; $i < sizeof($columns[$modules[$m]]); $i++) { @@ -221,6 +231,16 @@ function showMainPage($scope) { } echo "\n"; echo "\n"; + // DN attributes + $sampleCSV_row[] = "\"" . call_user_func(array($_SESSION['config'], 'get_' . ucfirst($scope) . 'Suffix')) . "\""; + $sampleCSV_row[] = "\"" . array_shift(getRDNAttributes($scope)) . "\""; + echo "\n"; + echo "\n"; + // module attributes for ($m = 0; $m < sizeof($modules); $m++) { if (sizeof($columns[$modules[$m]]) < 1) continue; for ($i = 0; $i < sizeof($columns[$modules[$m]]); $i++) {
\n"; + echo "dn_suffix"; + echo "\n"; + echo "dn_rdn"; + echo "
\n"; + echo call_user_func(array($_SESSION['config'], 'get_' . ucfirst($scope) . 'Suffix')); + echo "\n"; + echo array_shift(getRDNAttributes($scope)); + echo "