diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-08-01 22:38:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-08-01 22:38:03 +0000 |
commit | f88eea0e149b3b7a37c4b63f68a26a0c70507a22 (patch) | |
tree | 8031308bd26289b655d9bc9b97eb1b7ec17c41a3 /perl-install/standalone/drakauth | |
parent | 58ef253941a439f8c880bc9bffd83790e6eccd21 (diff) | |
download | drakx-f88eea0e149b3b7a37c4b63f68a26a0c70507a22.tar drakx-f88eea0e149b3b7a37c4b63f68a26a0c70507a22.tar.gz drakx-f88eea0e149b3b7a37c4b63f68a26a0c70507a22.tar.bz2 drakx-f88eea0e149b3b7a37c4b63f68a26a0c70507a22.tar.xz drakx-f88eea0e149b3b7a37c4b63f68a26a0c70507a22.zip |
add drakauth
Diffstat (limited to 'perl-install/standalone/drakauth')
-rwxr-xr-x | perl-install/standalone/drakauth | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/perl-install/standalone/drakauth b/perl-install/standalone/drakauth new file mode 100755 index 000000000..74f88cdb2 --- /dev/null +++ b/perl-install/standalone/drakauth @@ -0,0 +1,33 @@ +#!/usr/bin/perl + +use lib qw(/usr/lib/libDrakX); + +use standalone; #- warning, standalone must be loaded very first, for 'explanations' + +use common; +use interactive; +use any; +use network; + +my $netc = {}; +my $intf = {}; +network::read_all_conf('', $netc, $intf); + +my $in = 'interactive'->vnew('su'); + + +my $authentication = {}; # TODO + +my $authentication_kind = any::authentication2authentication_kind($authentication); + +main: +$in->ask_from('', '', + [ + { label => N("Authentication"), val => \$authentication_kind, list => [ any::authentication_kinds() ], format => \&any::authentication_kind2description }, + ]) or $in->exit; + +any::ask_authentification_parameters($in, $netc, $authentication, $authentication_kind) or goto main; + +any::set_authentication($in, $netc, $authentication, sub { my ($f) = @_; $f->() }); + +$in->exit; |