X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=PVE%2FAuth%2FPlugin.pm;h=16ef046b4ecc69ccf0974ff13c1f0e0a17d7ac13;hp=3356f691c55d1b5ff8bc3e1b5c5a54e63ac57a8e;hb=5654af83fa4f8ffc4e44176eea6229716eae2036;hpb=54028297ea98e9f17ffaefeb2fa22723ed0bceb0 diff --git a/PVE/Auth/Plugin.pm b/PVE/Auth/Plugin.pm index 3356f69..16ef046 100755 --- a/PVE/Auth/Plugin.pm +++ b/PVE/Auth/Plugin.pm @@ -9,8 +9,6 @@ use PVE::SectionConfig; use PVE::JSONSchema qw(get_standard_option); use PVE::Cluster qw(cfs_register_file cfs_read_file cfs_lock_file); -use Data::Dumper; - use base qw(PVE::SectionConfig); my $domainconfigfile = "domains.cfg"; @@ -130,20 +128,6 @@ sub parse_tfa_config { return $res; } -my $salt_starter = time(); - -sub encrypt_pw { - my ($pw) = @_; - - $salt_starter++; - my $salt = substr(Digest::SHA::sha1_base64(time() + $salt_starter + $$), 0, 8); - - # crypt does not want '+' in salt (see 'man crypt') - $salt =~ s/\+/X/g; - - return crypt(encode("utf8", $pw), "\$5\$$salt\$"); -} - my $defaultData = { propertyList => { type => { description => "Realm type." },