From f33f26fd193aedd2dba8620f71a1ad4eb2d6ed05 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 29 Jun 2008 13:51:47 +0000 Subject: [PATCH] allow larger UIDs/GIDs --- lam/lib/modules/posixAccount.inc | 2 +- lam/lib/modules/posixGroup.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 188e9174..eea1d284 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -972,7 +972,7 @@ class posixAccount extends baseModule { if (isset($this->attributes['uidNumber'][0])) $uidNumber = $this->attributes['uidNumber'][0]; $return[] = array( array('kind' => 'text', 'text' => _('UID number').'*'), - array('kind' => 'input', 'name' => 'uidNumber', 'type' => 'text', 'size' => '6', 'maxlength' => '6', 'value' => $uidNumber), + array('kind' => 'input', 'name' => 'uidNumber', 'type' => 'text', 'size' => '30', 'maxlength' => '20', 'value' => $uidNumber), array('kind' => 'help', 'value' => 'uidNumber')); $gecos = ''; if (isset($this->attributes['gecos'][0])) $gecos = $this->attributes['gecos'][0]; diff --git a/lam/lib/modules/posixGroup.inc b/lam/lib/modules/posixGroup.inc index 1a7439c8..1214bfd2 100644 --- a/lam/lib/modules/posixGroup.inc +++ b/lam/lib/modules/posixGroup.inc @@ -154,11 +154,11 @@ class posixGroup extends baseModule { function display_html_attributes() { $return[] = array( 0 => array('kind' => 'text', 'text' => _("Group name").'*'), - 1 => array('kind' => 'input', 'name' => 'cn', 'type' => 'text', 'size' => '20', 'maxlength' => '20', 'value' => $this->attributes['cn'][0]), + 1 => array('kind' => 'input', 'name' => 'cn', 'type' => 'text', 'size' => '30', 'maxlength' => '30', 'value' => $this->attributes['cn'][0]), 2 => array('kind' => 'help', 'value' => 'cn')); $return[] = array( 0 => array('kind' => 'text', 'text' => _('GID number').'*'), - 1 => array('kind' => 'input', 'name' => 'gidNumber', 'type' => 'text', 'size' => '6', 'maxlength' => '6', 'value' => $this->attributes['gidNumber'][0]), + 1 => array('kind' => 'input', 'name' => 'gidNumber', 'type' => 'text', 'size' => '30', 'maxlength' => '20', 'value' => $this->attributes['gidNumber'][0]), 2 => array('kind' => 'help', 'value' => 'gidNumber')); $return[] = array( 0 => array('kind' => 'text', 'text' => _('Description')),