summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-06 05:19:41 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-06 05:19:41 +0000
commitd2a9ccb0dad055a1dd8a9dbb9cfe688942011fbc (patch)
tree457df73fa30b77e1ee6f45073d3f29c967cb2d3d /perl-install/standalone
parent205c71d34d6445fe8641c5258ddf15816628c94f (diff)
downloaddrakx-d2a9ccb0dad055a1dd8a9dbb9cfe688942011fbc.tar
drakx-d2a9ccb0dad055a1dd8a9dbb9cfe688942011fbc.tar.gz
drakx-d2a9ccb0dad055a1dd8a9dbb9cfe688942011fbc.tar.bz2
drakx-d2a9ccb0dad055a1dd8a9dbb9cfe688942011fbc.tar.xz
drakx-d2a9ccb0dad055a1dd8a9dbb9cfe688942011fbc.zip
(build_notebook) Authentication is used for modems only (better fix for #11142)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakconnect8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index 4e6bef554..ca274aede 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -477,9 +477,11 @@ sub build_notebook {
),
);
- my %auth_methods = map_index { $::i => $_ } N("PAP"), N("Terminal-based"), N("Script-based"), N("CHAP"), N("PAP/CHAP");
- $gui->{intf}{auth}->set_popdown_strings(sort values %auth_methods);
- $gui->{intf}{auth}->set_text($auth_methods{$intf->{Authentication}}) if $auth_methods{$intf->{Authentication}};
+ if ($interface eq 'modem') {
+ my %auth_methods = map_index { $::i => $_ } N("PAP"), N("Terminal-based"), N("Script-based"), N("CHAP"), N("PAP/CHAP");
+ $gui->{intf}{auth}->set_popdown_strings(sort values %auth_methods);
+ $gui->{intf}{auth}->set_text($auth_methods{$intf->{Authentication}});
+ }
$gui->{intf}{passwd}->set_visibility(0);
}