all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pmg-devel] [PATCH api 1/2] auth: set PAM context to 'proxmox-mailgateway-auth'
@ 2023-06-27 13:39 Wolfgang Bumiller
  2023-06-27 13:39 ` [pmg-devel] [PATCH api 2/2] pam: set PAM_RHOST Wolfgang Bumiller
  2023-06-27 14:08 ` [pmg-devel] applied-series: [PATCH api 1/2] auth: set PAM context to 'proxmox-mailgateway-auth' Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Wolfgang Bumiller @ 2023-06-27 13:39 UTC (permalink / raw)
  To: pmg-devel

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

Signed-off-by: Wolfgang Bumiller <w.bumiller@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-27 14:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-27 13:39 [pmg-devel] [PATCH api 1/2] auth: set PAM context to 'proxmox-mailgateway-auth' Wolfgang Bumiller
2023-06-27 13:39 ` [pmg-devel] [PATCH api 2/2] pam: set PAM_RHOST Wolfgang Bumiller
2023-06-27 14:08 ` [pmg-devel] applied-series: [PATCH api 1/2] auth: set PAM context to 'proxmox-mailgateway-auth' Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal