summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf.default/config.xml2
-rw-r--r--etc/inc/auth.inc2
-rw-r--r--etc/inc/globals.inc2
-rw-r--r--etc/inc/upgrade_config.inc15
-rw-r--r--usr/local/www/system_usermanager.php8
5 files changed, 21 insertions, 8 deletions
diff --git a/conf.default/config.xml b/conf.default/config.xml
index 4d4729d..35d2c75 100644
--- a/conf.default/config.xml
+++ b/conf.default/config.xml
@@ -159,7 +159,7 @@
</group>
<user>
<name>admin</name>
- <fullname>System Administrator</fullname>
+ <descr>System Administrator</descr>
<scope>system</scope>
<groupname>admins</groupname>
<password>$1$dSJImFph$GvZ7.1UbuWu.Yb8etC0re.</password>
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index ac1e4ec..0097e10 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -333,7 +333,7 @@ function local_user_set(& $user) {
/* add or mod pw db */
$cmd = "/usr/sbin/pw {$user_op} -q -u {$user_uid} -n {$user_name}".
" -g {$user_group} -s {$user_shell} -d {$user_home}".
- " -c ".escapeshellarg($user['fullname'])." -H 0 2>&1";
+ " -c ".escapeshellarg($user['descr'])." -H 0 2>&1";
if($debug)
log_error("Running: {$cmd}");
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index fcb9026..b11e17b 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -89,7 +89,7 @@ $g = array(
"disablehelpmenu" => false,
"disablehelpicon" => false,
"debug" => false,
- "latest_config" => "7.3",
+ "latest_config" => "7.4",
"nopkg_platforms" => array("cdrom"),
"minimum_ram_warning" => "105",
"minimum_ram_warning_text" => "128 MB",
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index f4f8bb6..71644fa 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -590,7 +590,7 @@ function upgrade_039_to_040() {
$config['system']['user'] = array();
$config['system']['user'][0]['name'] = "{$config['system']['username']}";
- $config['system']['user'][0]['fullname'] = "System Administrator";
+ $config['system']['user'][0]['descr'] = "System Administrator";
$config['system']['user'][0]['scope'] = "system";
$config['system']['user'][0]['groupname'] = "admins";
$config['system']['user'][0]['password'] = "{$config['system']['password']}";
@@ -2245,4 +2245,17 @@ function upgrade_072_to_073() {
desc_to_descr($config['load_balancer']['lbprotocol']);
desc_to_descr($config['load_balancer']['virtual_server']);
}
+
+function upgrade_073_to_074() {
+ global $config;
+
+ if (is_array($config['system']['user'])) {
+ foreach($config['system']['user'] as & $userent) {
+ if (!empty($userent['fullname'])) {
+ $userent['descr'] = $userent['fullname'];
+ unset($userent['fullname']);
+ }
+ }
+ }
+}
?>
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php
index 0527594..a80ba00 100644
--- a/usr/local/www/system_usermanager.php
+++ b/usr/local/www/system_usermanager.php
@@ -152,7 +152,7 @@ if (isAllowedPage("system_usermanager")) {
if ($_GET['act'] == "edit") {
if (isset($id) && $a_user[$id]) {
$pconfig['usernamefld'] = $a_user[$id]['name'];
- $pconfig['fullname'] = $a_user[$id]['fullname'];
+ $pconfig['descr'] = $a_user[$id]['descr'];
$pconfig['expires'] = $a_user[$id]['expires'];
$pconfig['groups'] = local_user_get_groups($a_user[$id]);
$pconfig['utype'] = $a_user[$id]['scope'];
@@ -284,7 +284,7 @@ if (isAllowedPage("system_usermanager")) {
local_user_set_password($userent, $_POST['passwordfld1']);
$userent['name'] = $_POST['usernamefld'];
- $userent['fullname'] = $_POST['fullname'];
+ $userent['descr'] = $_POST['descr'];
$userent['expires'] = $_POST['expires'];
$userent['authorizedkeys'] = base64_encode($_POST['authorizedkeys']);
$userent['ipsecpsk'] = $_POST['ipsecpsk'];
@@ -496,7 +496,7 @@ function sshkeyClicked(obj) {
<tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Full name");?></td>
<td width="78%" class="vtable">
- <input name="fullname" type="text" class="formfld unknown" id="fullname" size="20" value="<?=htmlspecialchars($pconfig['fullname']);?>" <?=$ro;?>/>
+ <input name="descr" type="text" class="formfld unknown" id="descr" size="20" value="<?=htmlspecialchars($pconfig['descr']);?>" <?=$ro;?>/>
<br/>
<?=gettext("User's full name, for your own information only");?>
</td>
@@ -812,7 +812,7 @@ function sshkeyClicked(obj) {
</tr>
</table>
</td>
- <td class="listr"><?=htmlspecialchars($userent['fullname']);?>&nbsp;</td>
+ <td class="listr"><?=htmlspecialchars($userent['descr']);?>&nbsp;</td>
<td class="listr"><?php if(isset($userent['disabled'])) echo "*"; ?></td>
<td class="listbg">
<?=implode(",",local_user_get_groups($userent));?>
OpenPOWER on IntegriCloud