blob: 9bf1f9757c1f359e803e4db4db425e1d1c969607 [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---
Patrick Williams520786c2023-06-25 16:20:36 -050010Upstream-Status: Pending
11
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012 source3/wscript | 13 ++++++++++++-
13 1 file changed, 12 insertions(+), 1 deletion(-)
14
15diff --git a/source3/wscript b/source3/wscript
Andrew Geissler517393d2023-01-13 08:55:19 -060016index 22be17a..ee9ce52 100644
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017--- a/source3/wscript
18+++ b/source3/wscript
Andrew Geissler517393d2023-01-13 08:55:19 -060019@@ -862,7 +862,7 @@ msg.msg_accrightslen = sizeof(fd);
Brad Bishop316dfdd2018-06-25 12:45:53 -040020 if conf.env.with_iconv:
21 conf.DEFINE('HAVE_ICONV', 1)
22
23- if Options.options.with_pam:
24+ if Options.options.with_pam != False:
25 use_pam=True
26 conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h')
27 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 -060028@@ -939,6 +939,17 @@ int i; i = PAM_RADIO_TYPE;
Brad Bishop316dfdd2018-06-25 12:45:53 -040029 "or headers not found. Use --without-pam to disable "
30 "PAM support.");
31
32+ else:
33+ Logs.warn("PAM disabled")
34+ use_pam=False
35+ conf.undefine('WITH_PAM')
36+ conf.undefine('WITH_PAM_MODULES')
37+ conf.undefine('HAVE_SECURITY_PAM_APPL_H')
38+ conf.undefine('PAM_RHOST')
39+ conf.undefine('PAM_TTY')
40+ conf.undefine('HAVE_PAM_PAM_APPL_H')
41+
42+
43 seteuid = False
44
45 #
Andrew Geissler517393d2023-01-13 08:55:19 -060046--
472.25.1
48