]> git.proxmox.com Git - proxmox-backup.git/commitdiff
access: use proxmox-backup-auth for pam
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Feb 2019 10:21:14 +0000 (11:21 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Feb 2019 12:40:22 +0000 (13:40 +0100)
allows customization via /etc/pam.d/proxmox-backup-auth

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/api2/access.rs

index ff700e27985fde53ad3d5e50140686f6159097e8..361e445c046c428b06b1138426efbc331cab9b42 100644 (file)
@@ -13,7 +13,7 @@ use serde_json::{json, Value};
 fn authenticate_user(username: &str, password: &str) -> Result<(), Error> {
 
     if username == "root@pam" {
-        let mut auth = pam_auth::Authenticator::new("common-auth").unwrap();
+        let mut auth = pam_auth::Authenticator::new("proxmox-backup-auth").unwrap();
         auth.set_credentials("root", password);
         auth.authenticate()?;
         return Ok(());