]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/Auth/PAM.pm
fix #1670: change PAM service name to project specific name
[pve-access-control.git] / PVE / Auth / PAM.pm
index d8459783db452dca16f298d261a6c2cdaea6eaf3..d016f834f9e3ec92b87e86ffc36a6ea42d45f15c 100755 (executable)
@@ -27,7 +27,7 @@ sub authenticate_user {
     # user (www-data) need to be able to read /etc/passwd /etc/shadow
     die "no password\n" if !$password;
 
-    my $pamh = new Authen::PAM('common-auth', $username, sub {
+    my $pamh = new Authen::PAM('proxmox-ve-auth', $username, sub {
        my @res;
        while(@_) {
            my $msg_type = shift;
@@ -66,7 +66,7 @@ sub store_password {
 
     my $cmd = ['usermod'];
 
-    my $epw = PVE::Auth::Plugin::encrypt_pw($password);
+    my $epw = PVE::Tools::encrypt_pw($password);
 
     push @$cmd, '-p', $epw, $username;