summaryrefslogtreecommitdiffstats
path: root/samba_wizard/Samba.pm
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2005-06-04 04:57:47 +0000
committerAntoine Ginies <aginies@mandriva.com>2005-06-04 04:57:47 +0000
commitd6fde3966aa48561f198ae1e154510b6fcedb594 (patch)
tree3a86eb4eee1252dee30d043464401b013f4f809a /samba_wizard/Samba.pm
parent4872c954e2340d1ed8460488e53b8fc351c4e117 (diff)
downloaddrakwizard-d6fde3966aa48561f198ae1e154510b6fcedb594.tar
drakwizard-d6fde3966aa48561f198ae1e154510b6fcedb594.tar.gz
drakwizard-d6fde3966aa48561f198ae1e154510b6fcedb594.tar.bz2
drakwizard-d6fde3966aa48561f198ae1e154510b6fcedb594.tar.xz
drakwizard-d6fde3966aa48561f198ae1e154510b6fcedb594.zip
fix admin users (thx anne report)
Diffstat (limited to 'samba_wizard/Samba.pm')
-rwxr-xr-xsamba_wizard/Samba.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/samba_wizard/Samba.pm b/samba_wizard/Samba.pm
index 631685d8..0066fe4a 100755
--- a/samba_wizard/Samba.pm
+++ b/samba_wizard/Samba.pm
@@ -139,6 +139,7 @@ $o->{pages} = {
{ label => N('Domain master:'), fixed_val => \$o->{var}{wiz_domain_master} },
{ label => N('Security:'), fixed_val => \$o->{var}{wiz_security} },
{ label => N('Wins support:'), val => \$o->{var}{wiz_wins_support}, fixed_list => \@yesorno },
+ { label => N('admin users:'), val => \$o->{var}{wiz_admin_users}, help => N('root @adm') },
{ label => N('Os level:'), fixed_val => \$o->{var}{wiz_oslevel}, help =>N("The global os level option dictates the operating system level at which Samba will masquerade during a browser election. If you wish to have Samba win an election and become the master browser, you can set the level above that of the operating system on your network with the highest current value. ie: os level = 34") },
{ label => N('Use LDAP Passdb backend'), val => \$o->{var}{wiz_passdb_backend_yn}, fixed_list => \@yesorno },
],
@@ -190,6 +191,7 @@ $o->{pages} = {
{ label => N('Domain master'), fixed_val => \$o->{var}{wiz_domain_master} },
{ label => N('Prefered master'), fixed_val => \$o->{var}{wiz_preferred_master} },
{ label => N('Domain logons'), fixed_val => \$o->{var}{wiz_domain_logons} },
+ { label => N('admin users:'), val => \$o->{var}{wiz_admin_users}, help => N('root @adm') },
],
next => 'ask_workgroup',
},
@@ -255,7 +257,6 @@ $o->{pages} = {
{ label => N('LDAP machine suffix:'), val => \$o->{var}{wiz_ldap_machine_suffix}, help => N('It specifies where machines should be added to the ldap tree. ie: ou=Computers') },
{ label => N('LDAP user suffix:'), val => \$o->{var}{wiz_ldap_user_suffix}, help => N('This parameter specifies where users are added to the tree. If this parameter is not specified, the value from ldap suffix.') },
{ label => N('LDAP group suffix:'), val => \$o->{var}{wiz_ldap_group_suffix}, help => N('This parameters specifies the suffix that is used for groups when these are added to the LDAP directory. ie: ou=Groups') },
- { label => N('admin users:'), val => \$o->{var}{wiz_admin_users}, help => N('root @adm') },
],
complete => sub {
if (!($o->{var}{wiz_ldap_suffix})) {
@@ -395,6 +396,7 @@ sub global_special_options() {
$o->{var}{wiz_passdb_backend} and $samba->{global}{'passdb backend'} = $o->{var}{wiz_passdb_backend};
$o->{var}{wiz_wins_support} and $samba->{global}{'wins support'} = $o->{var}{wiz_wins_support};
$o->{var}{wiz_password_server} and $samba->{global}{'password server'} = $o->{var}{wiz_password_server};
+ $o->{var}{wiz_admin_users} and $samba->{global}{'admin users'} = $o->{var}{wiz_admin_users};
# ldap options if needed
if ($o->{var}{wiz_passdb_backend_yn} =~ /yes/) {
$samba->{global}{'ldap passwd sync'} = "yes";