summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-08-01 22:38:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-08-01 22:38:03 +0000
commitf88eea0e149b3b7a37c4b63f68a26a0c70507a22 (patch)
tree8031308bd26289b655d9bc9b97eb1b7ec17c41a3
parent58ef253941a439f8c880bc9bffd83790e6eccd21 (diff)
downloaddrakx-backup-do-not-use-f88eea0e149b3b7a37c4b63f68a26a0c70507a22.tar
drakx-backup-do-not-use-f88eea0e149b3b7a37c4b63f68a26a0c70507a22.tar.gz
drakx-backup-do-not-use-f88eea0e149b3b7a37c4b63f68a26a0c70507a22.tar.bz2
drakx-backup-do-not-use-f88eea0e149b3b7a37c4b63f68a26a0c70507a22.tar.xz
drakx-backup-do-not-use-f88eea0e149b3b7a37c4b63f68a26a0c70507a22.zip
add drakauth
-rw-r--r--perl-install/Makefile.config2
-rw-r--r--perl-install/drakxtools.spec2
-rwxr-xr-xperl-install/standalone/drakauth33
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;