[pmg-devel] [PATCH api 1/2] auth: set PAM context to 'proxmox-mailgateway-auth'

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jun 27 15:39:07 CEST 2023


This allows configuring PAM authentication for PMG via
/etc/pam.d/proxmox-mailgateway-auth

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 src/PMG/AccessControl.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PMG/AccessControl.pm b/src/PMG/AccessControl.pm
index b093666..7926d4b 100644
--- a/src/PMG/AccessControl.pm
+++ b/src/PMG/AccessControl.pm
@@ -127,7 +127,7 @@ sub authenticate_pam_user {
 
     # user need to be able to read /etc/passwd /etc/shadow
 
-    my $pamh = Authen::PAM->new('common-auth', $username, sub {
+    my $pamh = Authen::PAM->new('proxmox-mailgateway-auth', $username, sub {
 	my @res;
 	while(@_) {
 	    my $msg_type = shift;
-- 
2.39.2





More information about the pmg-devel mailing list