replaced "Ordinary user" with "-"

This commit is contained in:
Roland Gruber 2004-11-10 15:12:45 +00:00
parent 53aaaf94a9
commit f64a7f1049
2 changed files with 5 additions and 5 deletions

View File

@ -574,8 +574,8 @@ class sambaAccount extends baseModule {
$wrid=true; $wrid=true;
} }
else $options[] = _('Guest'); else $options[] = _('Guest');
if ($wrid) $options[] = _('Ordinary user'); if ($wrid) $options[] = "-";
else $selected[] = _('Ordinary user'); else $selected[] = "-";
$return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Special user') ), $return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Special user') ),
1 => array ( 'kind' => 'select', 'name' => 'rid', 'options' => $options, 'options_selected' => $selected), 1 => array ( 'kind' => 'select', 'name' => 'rid', 'options' => $options, 'options_selected' => $selected),
2 => array ( 'kind' => 'help', 'value' => 'rid' )); 2 => array ( 'kind' => 'help', 'value' => 'rid' ));

View File

@ -334,7 +334,7 @@ class sambaSamAccount extends baseModule {
if ($_SESSION['cache']->in_cache($SID."-501", 'sambaSID', 'user')!=$_SESSION[$this->base]->dn_orig) if ($_SESSION['cache']->in_cache($SID."-501", 'sambaSID', 'user')!=$_SESSION[$this->base]->dn_orig)
$triggered_messages['sambaSID'][] = $this->messages['rid'][1]; $triggered_messages['sambaSID'][] = $this->messages['rid'][1];
} }
else if ($post['sambaSID']== _('Ordinary user')) { else if ($post['sambaSID']== "-") {
$this->attributes['sambaSID'][0] = $SID."-". (($_SESSION[$this->base]->module['posixAccount']->attributes['uidNumber'][0]*2)+$RIDbase); $this->attributes['sambaSID'][0] = $SID."-". (($_SESSION[$this->base]->module['posixAccount']->attributes['uidNumber'][0]*2)+$RIDbase);
} }
// Check values // Check values
@ -542,8 +542,8 @@ class sambaSamAccount extends baseModule {
$wrid=true; $wrid=true;
} }
else $options[] = _('Guest'); else $options[] = _('Guest');
if ($wrid) $options[] = _('Ordinary user'); if ($wrid) $options[] = "-";
else $selected[] = _('Ordinary user'); else $selected[] = "-";
$return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Special user') ), $return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Special user') ),
1 => array ( 'kind' => 'select', 'name' => 'sambaSID', 'options' => $options, 'options_selected' => $selected), 1 => array ( 'kind' => 'select', 'name' => 'sambaSID', 'options' => $options, 'options_selected' => $selected),
2 => array ( 'kind' => 'help', 'value' => 'sambaSID' )); 2 => array ( 'kind' => 'help', 'value' => 'sambaSID' ));