From: Wolfgang Bumiller <w.bumiller@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH api 1/2] auth: set PAM context to 'proxmox-mailgateway-auth'
Date: Tue, 27 Jun 2023 15:39:07 +0200 [thread overview]
Message-ID: <20230627133908.186940-1-w.bumiller@proxmox.com> (raw)
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
next reply other threads:[~2023-06-27 13:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-27 13:39 Wolfgang Bumiller [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230627133908.186940-1-w.bumiller@proxmox.com \
--to=w.bumiller@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox