diff --git a/lam/config/profiles/users/default.pru b/lam/config/profiles/users/default.pru
index 8ece1d0d..bcddedb5 100644
--- a/lam/config/profiles/users/default.pru
+++ b/lam/config/profiles/users/default.pru
@@ -1,3 +1,4 @@
+general_group: root
general_homedir: /home/$user
general_shell: /bin/bash
unix_password_no: 0
@@ -13,3 +14,5 @@ smb_flagsD: 0
smb_flagsX: 1
smb_homedrive: U:
smb_smbhome: \\server\$user
+smb_domain: sambaDomainName=WMS-NET,dc=my-domain,dc=com
+quota: /media/sda1,1000,1100,1200,1300
diff --git a/lam/templates/profedit/profilegroup.php b/lam/templates/profedit/profilegroup.php
index 3d859ec2..824d1421 100644
--- a/lam/templates/profedit/profilegroup.php
+++ b/lam/templates/profedit/profilegroup.php
@@ -42,8 +42,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
// load quota list
if ($_SESSION['config']->get_scriptPath()) {
- $tmp = getquotas("group");
- $acct_q = $tmp[0];
+ $acct_q = getquotas("group");
}
// print header
@@ -111,28 +110,28 @@ if ($_SESSION['config']->get_scriptPath()) {
"
"._('Help').' | '."\n".
''."\n";
// quota settings
- for ($i = 0; $i < (sizeof($acct_q->quota) - 1); $i++) {
+ for ($i = 0; $i < (sizeof($acct_q[0]->quota)); $i++) {
// load values from profile
for ($k = 0; $k < sizeof($acct->quota); $k++) {
// check for equal mountpoints
- if ($acct->quota[$k][0] == $acct_q->quota[$i][0]) {
- $acct_q->quota[$i][2] = $acct->quota[$i][2];
- $acct_q->quota[$i][3] = $acct->quota[$i][3];
- $acct_q->quota[$i][6] = $acct->quota[$i][6];
- $acct_q->quota[$i][7] = $acct->quota[$i][7];
+ if ($acct->quota[$k][0] == $acct_q[0]->quota[$i][0]) {
+ $acct_q[0]->quota[$i][2] = $acct->quota[$i][2];
+ $acct_q[0]->quota[$i][3] = $acct->quota[$i][3];
+ $acct_q[0]->quota[$i][6] = $acct->quota[$i][6];
+ $acct_q[0]->quota[$i][7] = $acct->quota[$i][7];
}
}
echo "\n";
- echo '' . $acct_q->quota[$i][0] . "quota[$i][0] . "\"> | \n"; // mountpoint
- echo ' | \n"; // blocks soft limit
- echo ' | \n"; // blocks hard limit
- echo ' | \n"; // inodes soft limit
- echo ' | \n"; // inodes hard limit
+ echo '' . $acct_q[0]->quota[$i][0] . "quota[$i][0] . "\"> | \n"; // mountpoint
+ echo ' | \n"; // blocks soft limit
+ echo ' | \n"; // blocks hard limit
+ echo ' | \n"; // inodes soft limit
+ echo ' | \n"; // inodes hard limit
echo "
\n";
}
echo "\n";
// save number of mountpoints
- echo "quota) - 1) . "\">\n";
+ echo "quota)) . "\">\n";
echo "\n";
}
diff --git a/lam/templates/profedit/profileuser.php b/lam/templates/profedit/profileuser.php
index 2896e1ce..3374cc30 100644
--- a/lam/templates/profedit/profileuser.php
+++ b/lam/templates/profedit/profileuser.php
@@ -42,8 +42,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
// load quota list
if ($_SESSION['config']->get_scriptPath()) {
- $tmp = getquotas("user");
- $acct_q = $tmp[0];
+ $acct_q = getquotas("user");
}
// print header
@@ -388,28 +387,28 @@ if ($_SESSION['config']->get_scriptPath()) {
""._('Help').' | '."\n".
''."\n";
// quota settings
- for ($i = 0; $i < (sizeof($acct_q->quota) - 1); $i++) {
+ for ($i = 0; $i < (sizeof($acct_q[0]->quota)); $i++) {
// load values from profile
for ($k = 0; $k < sizeof($acct->quota); $k++) {
// check for equal mountpoints
- if ($acct->quota[$k][0] == $acct_q->quota[$i][0]) {
- $acct_q->quota[$i][2] = $acct->quota[$i][2];
- $acct_q->quota[$i][3] = $acct->quota[$i][3];
- $acct_q->quota[$i][6] = $acct->quota[$i][6];
- $acct_q->quota[$i][7] = $acct->quota[$i][7];
+ if ($acct->quota[$k][0] == $acct_q[0]->quota[$i][0]) {
+ $acct_q[0]->quota[$i][2] = $acct->quota[$i][2];
+ $acct_q[0]->quota[$i][3] = $acct->quota[$i][3];
+ $acct_q[0]->quota[$i][6] = $acct->quota[$i][6];
+ $acct_q[0]->quota[$i][7] = $acct->quota[$i][7];
}
}
echo "\n";
- echo '' . $acct_q->quota[$i][0] . "quota[$i][0] . "\"> | \n"; // mountpoint
- echo ' | \n"; // blocks soft limit
- echo ' | \n"; // blocks hard limit
- echo ' | \n"; // inodes soft limit
- echo ' | \n"; // inodes hard limit
+ echo '' . $acct_q[0]->quota[$i][0] . "quota[$i][0] . "\"> | \n"; // mountpoint
+ echo ' | \n"; // blocks soft limit
+ echo ' | \n"; // blocks hard limit
+ echo ' | \n"; // inodes soft limit
+ echo ' | \n"; // inodes hard limit
echo "
\n";
}
echo "\n";
// save number of mountpoints
- echo "quota) - 1) . "\">\n";
+ echo "quota)) . "\">\n";
echo "\n";
}