blob: 0cbacb6c0e1ee13e734a7a10006d60417da2c0fb [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001Lifted from gentoo and ported to 4.4.5
2
3http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.2.7-pam.patch
4
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6
7Index: samba-4.7.0/source3/wscript
8===================================================================
9--- samba-4.7.0.orig/source3/wscript
10+++ samba-4.7.0/source3/wscript
11@@ -875,7 +875,7 @@ msg.msg_accrightslen = sizeof(fd);
12 if conf.env.with_iconv:
13 conf.DEFINE('HAVE_ICONV', 1)
14
15- if Options.options.with_pam:
16+ if Options.options.with_pam != False:
17 use_pam=True
18 conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h')
19 if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'):
20@@ -952,6 +952,17 @@ int i; i = PAM_RADIO_TYPE;
21 "or headers not found. Use --without-pam to disable "
22 "PAM support.");
23
24+ else:
25+ Logs.warn("PAM disabled")
26+ use_pam=False
27+ conf.undefine('WITH_PAM')
28+ conf.undefine('WITH_PAM_MODULES')
29+ conf.undefine('HAVE_SECURITY_PAM_APPL_H')
30+ conf.undefine('PAM_RHOST')
31+ conf.undefine('PAM_TTY')
32+ conf.undefine('HAVE_PAM_PAM_APPL_H')
33+
34+
35 seteuid = False
36
37 #