blob: 9e45459931bfdcf3eefe546fc77fbc509502256a [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 6822c61ade5617c9f109e32ad4cdc115fa9e12c8 Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 6 Nov 2016 23:40:54 -0800
4Subject: [PATCH] Lifted from gentoo and ported to 4.4.5
Brad Bishop316dfdd2018-06-25 12:45:53 -04005
6http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.2.7-pam.patch
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009---
10 source3/wscript | 13 ++++++++++++-
11 1 file changed, 12 insertions(+), 1 deletion(-)
12
13diff --git a/source3/wscript b/source3/wscript
Andrew Geissler517393d2023-01-13 08:55:19 -060014index 22be17a..ee9ce52 100644
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015--- a/source3/wscript
16+++ b/source3/wscript
Andrew Geissler517393d2023-01-13 08:55:19 -060017@@ -862,7 +862,7 @@ msg.msg_accrightslen = sizeof(fd);
Brad Bishop316dfdd2018-06-25 12:45:53 -040018 if conf.env.with_iconv:
19 conf.DEFINE('HAVE_ICONV', 1)
20
21- if Options.options.with_pam:
22+ if Options.options.with_pam != False:
23 use_pam=True
24 conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h')
25 if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'):
Andrew Geissler517393d2023-01-13 08:55:19 -060026@@ -939,6 +939,17 @@ int i; i = PAM_RADIO_TYPE;
Brad Bishop316dfdd2018-06-25 12:45:53 -040027 "or headers not found. Use --without-pam to disable "
28 "PAM support.");
29
30+ else:
31+ Logs.warn("PAM disabled")
32+ use_pam=False
33+ conf.undefine('WITH_PAM')
34+ conf.undefine('WITH_PAM_MODULES')
35+ conf.undefine('HAVE_SECURITY_PAM_APPL_H')
36+ conf.undefine('PAM_RHOST')
37+ conf.undefine('PAM_TTY')
38+ conf.undefine('HAVE_PAM_PAM_APPL_H')
39+
40+
41 seteuid = False
42
43 #
Andrew Geissler517393d2023-01-13 08:55:19 -060044--
452.25.1
46