diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-29 19:37:01 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-29 19:37:01 +0000 |
commit | 0066ee6905c314da4c258bde140a6dcdb6db5587 (patch) | |
tree | 77cdc75e026921bac8be7a4a152690cba3643268 /perl-install | |
parent | c8b93ffe04ab815ad15e8434ea0b5bf3477ddc46 (diff) | |
download | drakx-0066ee6905c314da4c258bde140a6dcdb6db5587.tar drakx-0066ee6905c314da4c258bde140a6dcdb6db5587.tar.gz drakx-0066ee6905c314da4c258bde140a6dcdb6db5587.tar.bz2 drakx-0066ee6905c314da4c258bde140a6dcdb6db5587.tar.xz drakx-0066ee6905c314da4c258bde140a6dcdb6db5587.zip |
minimal authentication get() function
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/authentication.pm | 5 |
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) = @_; |