summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) = @_;