summaryrefslogtreecommitdiffstats
path: root/perl-install/authentication.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-29 19:37:01 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-29 19:37:01 +0000
commit0066ee6905c314da4c258bde140a6dcdb6db5587 (patch)
tree77cdc75e026921bac8be7a4a152690cba3643268 /perl-install/authentication.pm
parentc8b93ffe04ab815ad15e8434ea0b5bf3477ddc46 (diff)
downloaddrakx-backup-do-not-use-0066ee6905c314da4c258bde140a6dcdb6db5587.tar
drakx-backup-do-not-use-0066ee6905c314da4c258bde140a6dcdb6db5587.tar.gz
drakx-backup-do-not-use-0066ee6905c314da4c258bde140a6dcdb6db5587.tar.bz2
drakx-backup-do-not-use-0066ee6905c314da4c258bde140a6dcdb6db5587.tar.xz
drakx-backup-do-not-use-0066ee6905c314da4c258bde140a6dcdb6db5587.zip
minimal authentication get() function
Diffstat (limited to 'perl-install/authentication.pm')
-rw-r--r--perl-install/authentication.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/authentication.pm b/perl-install/authentication.pm
index 2eb032f65..911c11f84 100644
--- a/perl-install/authentication.pm
+++ b/perl-install/authentication.pm
@@ -146,6 +146,11 @@ The command 'wbinfo -t' will test whether your authentication secrets are good."
1;
}
+sub get() {
+ my $system_auth = cat_("/etc/pam.d/system-auth");
+ { md5 => $system_auth =~ /md5/, shadow => $system_auth =~ /shadow/ };
+}
+
sub set {
my ($in, $netc, $authentication, $when_network_is_up) = @_;