diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/Makefile.config | 2 | ||||
-rw-r--r-- | perl-install/drakxtools.spec | 2 | ||||
-rwxr-xr-x | perl-install/standalone/drakauth | 33 |
3 files changed, 36 insertions, 1 deletions
diff --git a/perl-install/Makefile.config b/perl-install/Makefile.config index 84d6d0382..2dd49d9db 100644 --- a/perl-install/Makefile.config +++ b/perl-install/Makefile.config @@ -13,7 +13,7 @@ SUDO = sudo SO_FILES = c/blib/arch/auto/c/c.so PMS_DIRS = Newt Xconfig c diskdrake harddrake interactive modules network partition_table printer resize_fat sbus_probing security PMS = *.pm $(PMS_DIRS:%=%/*.pm) commands install2 g_auto_install live_install2 -STANDALONEPMS_ = XFdrake adduserdrake diskdrake drakTermServ drakautoinst drakbackup drakboot drakbug drakbug_report drakconnect drakedm drakfirewall drakfloppy drakfont drakgw drakhelp drakperm drakproxy drakpxe draksec draksound draksplash drakupdate_fstab drakxservices drakxtv fileshareset harddrake2 keyboarddrake livedrake localedrake logdrake lsnetdrake mousedrake net_monitor printerdrake scannerdrake service_harddrake +STANDALONEPMS_ = XFdrake adduserdrake diskdrake drakTermServ drakautoinst drakauth drakbackup drakboot drakbug drakbug_report drakconnect drakedm drakfirewall drakfloppy drakfont drakgw drakhelp drakperm drakproxy drakpxe draksec draksound draksplash drakupdate_fstab drakxservices drakxtv fileshareset harddrake2 keyboarddrake livedrake localedrake logdrake lsnetdrake mousedrake net_monitor printerdrake scannerdrake service_harddrake STANDALONEPMS = $(STANDALONEPMS_:%=standalone/%) ALLPMS = $(PMS) $(STANDALONEPMS) share/advertising/*.pl diff --git a/perl-install/drakxtools.spec b/perl-install/drakxtools.spec index 530740bb5..59f56b5a8 100644 --- a/perl-install/drakxtools.spec +++ b/perl-install/drakxtools.spec @@ -61,6 +61,8 @@ graphical, simple and powerful. Different skill levels are available Perl/Gtk. It uses resize_fat which is a perl rewrite of the work of Andrew Clausen (libresize). +drakauth: configure authentification (LDAP/NIS/...) + drakautoinst: help you configure an automatic installation replay drakbackup: backup and restore your system 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; |