diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/samba/samba/samba-4.2.7-pam.patch')
-rw-r--r-- | meta-networking/recipes-connectivity/samba/samba/samba-4.2.7-pam.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba/samba-4.2.7-pam.patch b/meta-networking/recipes-connectivity/samba/samba/samba-4.2.7-pam.patch new file mode 100644 index 000000000..6b9ade920 --- /dev/null +++ b/meta-networking/recipes-connectivity/samba/samba/samba-4.2.7-pam.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | Lifted from gentoo and ported to 4.4.5 | ||
2 | |||
3 | http://data.gpo.zugaina.org/musl/net-fs/samba/files/samba-4.2.7-pam.patch | ||
4 | |||
5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
6 | |||
7 | |||
8 | Index: samba-4.4.5/source3/wscript | ||
9 | =================================================================== | ||
10 | --- samba-4.4.5.orig/source3/wscript | ||
11 | +++ samba-4.4.5/source3/wscript | ||
12 | @@ -873,7 +873,7 @@ msg.msg_accrightslen = sizeof(fd); | ||
13 | if conf.env.with_iconv: | ||
14 | conf.DEFINE('HAVE_ICONV', 1) | ||
15 | |||
16 | - if Options.options.with_pam: | ||
17 | + if Options.options.with_pam != False: | ||
18 | use_pam=True | ||
19 | conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h') | ||
20 | if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'): | ||
21 | @@ -945,6 +945,15 @@ int i; i = PAM_RADIO_TYPE; | ||
22 | if use_pam: | ||
23 | conf.DEFINE('WITH_PAM', 1) | ||
24 | conf.DEFINE('WITH_PAM_MODULES', 1) | ||
25 | + else: | ||
26 | + Logs.warn("PAM disabled") | ||
27 | + use_pam=False | ||
28 | + conf.undefine('WITH_PAM') | ||
29 | + conf.undefine('WITH_PAM_MODULES') | ||
30 | + conf.undefine('HAVE_SECURITY_PAM_APPL_H') | ||
31 | + conf.undefine('PAM_RHOST') | ||
32 | + conf.undefine('PAM_TTY') | ||
33 | + conf.undefine('HAVE_PAM_PAM_APPL_H') | ||
34 | |||
35 | seteuid = False | ||
36 | |||