1 |
commit: c41228519a3902dd0453d3c80af0d172c86267b1 |
2 |
Author: Vieri <rentorbuy <AT> yahoo <DOT> com> |
3 |
AuthorDate: Wed Jan 23 12:30:18 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 23 13:11:02 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4122851 |
7 |
|
8 |
net-fs/samba: pam+winbind authentication |
9 |
|
10 |
PAM winbind authentication configuration. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/590374 |
13 |
Tested-by: Vieri <rentorbuy <AT> yahoo.com> |
14 |
Signed-off-by: Vieri <rentorbuy <AT> yahoo.com> |
15 |
Fixes: 0eef165 (net-fs/samba: pam+winbind authentication) |
16 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
17 |
Closes: https://github.com/gentoo/gentoo/pull/10578 |
18 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
19 |
|
20 |
net-fs/samba/files/4.4/system-auth-winbind.pam | 18 ++++++++++++++++++ |
21 |
...-4.10.0_rc1.ebuild => samba-4.10.0_rc1-r1.ebuild} | 16 +++++++++++++++- |
22 |
.../{samba-4.7.12.ebuild => samba-4.7.12-r1.ebuild} | 18 ++++++++++++++++-- |
23 |
.../{samba-4.8.8.ebuild => samba-4.8.6-r3.ebuild} | 20 +++++++++++++++++--- |
24 |
.../{samba-4.8.8.ebuild => samba-4.8.8-r1.ebuild} | 18 ++++++++++++++++-- |
25 |
.../{samba-4.9.4.ebuild => samba-4.9.4-r1.ebuild} | 18 ++++++++++++++++-- |
26 |
6 files changed, 98 insertions(+), 10 deletions(-) |
27 |
|
28 |
diff --git a/net-fs/samba/files/4.4/system-auth-winbind.pam b/net-fs/samba/files/4.4/system-auth-winbind.pam |
29 |
new file mode 100644 |
30 |
index 00000000000..8d6746b7aeb |
31 |
--- /dev/null |
32 |
+++ b/net-fs/samba/files/4.4/system-auth-winbind.pam |
33 |
@@ -0,0 +1,18 @@ |
34 |
+#%PAM-1.0 |
35 |
+# $Id$ |
36 |
+ |
37 |
+auth required pam_env.so |
38 |
+auth sufficient pam_winbind.so |
39 |
+auth sufficient pam_unix.so likeauth nullok use_first_pass |
40 |
+auth required pam_deny.so |
41 |
+ |
42 |
+account sufficient pam_winbind.so |
43 |
+account required pam_unix.so |
44 |
+ |
45 |
+password required pam_cracklib.so retry=3 |
46 |
+password sufficient pam_unix.so nullok use_authtok md5 shadow |
47 |
+password required pam_deny.so |
48 |
+ |
49 |
+session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 |
50 |
+session required pam_limits.so |
51 |
+session required pam_unix.so |
52 |
|
53 |
diff --git a/net-fs/samba/samba-4.10.0_rc1.ebuild b/net-fs/samba/samba-4.10.0_rc1-r1.ebuild |
54 |
similarity index 95% |
55 |
rename from net-fs/samba/samba-4.10.0_rc1.ebuild |
56 |
rename to net-fs/samba/samba-4.10.0_rc1-r1.ebuild |
57 |
index 65badeb0782..58029da8000 100644 |
58 |
--- a/net-fs/samba/samba-4.10.0_rc1.ebuild |
59 |
+++ b/net-fs/samba/samba-4.10.0_rc1-r1.ebuild |
60 |
@@ -5,7 +5,7 @@ EAPI=6 |
61 |
PYTHON_COMPAT=( python3_{4,5,6,7} ) |
62 |
PYTHON_REQ_USE='threads(+),xml(+)' |
63 |
|
64 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd |
65 |
+inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam |
66 |
|
67 |
MY_PV="${PV/_rc/rc}" |
68 |
MY_P="${PN}-${MY_PV}" |
69 |
@@ -272,6 +272,20 @@ multilib_src_install() { |
70 |
systemd_dounit "${FILESDIR}"/winbindd.service |
71 |
systemd_dounit "${FILESDIR}"/samba.service |
72 |
fi |
73 |
+ |
74 |
+ if use pam and use winbind ; then |
75 |
+ newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
76 |
+ # bugs #376853 and #590374 |
77 |
+ insinto /etc/security |
78 |
+ doins examples/pam_winbind/pam_winbind.conf || die |
79 |
+ fi |
80 |
+ |
81 |
+ keepdir /var/cache/samba |
82 |
+ keepdir /var/lib/ctdb |
83 |
+ keepdir /var/lib/samba/{bind-dns,private} |
84 |
+ keepdir /var/lock/samba |
85 |
+ keepdir /var/log/samba |
86 |
+ keepdir /var/run/{ctdb,samba} |
87 |
} |
88 |
|
89 |
multilib_src_test() { |
90 |
|
91 |
diff --git a/net-fs/samba/samba-4.7.12.ebuild b/net-fs/samba/samba-4.7.12-r1.ebuild |
92 |
similarity index 95% |
93 |
rename from net-fs/samba/samba-4.7.12.ebuild |
94 |
rename to net-fs/samba/samba-4.7.12-r1.ebuild |
95 |
index 25a31e5776a..ce0c7421f11 100644 |
96 |
--- a/net-fs/samba/samba-4.7.12.ebuild |
97 |
+++ b/net-fs/samba/samba-4.7.12-r1.ebuild |
98 |
@@ -1,11 +1,11 @@ |
99 |
-# Copyright 1999-2018 Gentoo Authors |
100 |
+# Copyright 1999-2019 Gentoo Authors |
101 |
# Distributed under the terms of the GNU General Public License v2 |
102 |
|
103 |
EAPI=6 |
104 |
PYTHON_COMPAT=( python2_7 ) |
105 |
PYTHON_REQ_USE='threads(+),xml(+)' |
106 |
|
107 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils |
108 |
+inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils pam |
109 |
|
110 |
MY_PV="${PV/_rc/rc}" |
111 |
MY_P="${PN}-${MY_PV}" |
112 |
@@ -298,6 +298,20 @@ multilib_src_install() { |
113 |
systemd_dounit "${FILESDIR}"/winbindd.service |
114 |
systemd_dounit "${FILESDIR}"/samba.service |
115 |
fi |
116 |
+ |
117 |
+ if use pam and use winbind ; then |
118 |
+ newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
119 |
+ # bugs #376853 and #590374 |
120 |
+ insinto /etc/security |
121 |
+ doins examples/pam_winbind/pam_winbind.conf || die |
122 |
+ fi |
123 |
+ |
124 |
+ keepdir /var/cache/samba |
125 |
+ keepdir /var/lib/ctdb |
126 |
+ keepdir /var/lib/samba/{bind-dns,private} |
127 |
+ keepdir /var/lock/samba |
128 |
+ keepdir /var/log/samba |
129 |
+ keepdir /var/run/{ctdb,samba} |
130 |
} |
131 |
|
132 |
multilib_src_test() { |
133 |
|
134 |
diff --git a/net-fs/samba/samba-4.8.8.ebuild b/net-fs/samba/samba-4.8.6-r3.ebuild |
135 |
similarity index 94% |
136 |
copy from net-fs/samba/samba-4.8.8.ebuild |
137 |
copy to net-fs/samba/samba-4.8.6-r3.ebuild |
138 |
index 1d5b5c8adae..66090c5d807 100644 |
139 |
--- a/net-fs/samba/samba-4.8.8.ebuild |
140 |
+++ b/net-fs/samba/samba-4.8.6-r3.ebuild |
141 |
@@ -1,11 +1,11 @@ |
142 |
-# Copyright 1999-2018 Gentoo Authors |
143 |
+# Copyright 1999-2019 Gentoo Authors |
144 |
# Distributed under the terms of the GNU General Public License v2 |
145 |
|
146 |
EAPI=6 |
147 |
PYTHON_COMPAT=( python2_7 ) |
148 |
PYTHON_REQ_USE='threads(+),xml(+)' |
149 |
|
150 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd |
151 |
+inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam |
152 |
|
153 |
MY_PV="${PV/_rc/rc}" |
154 |
MY_P="${PN}-${MY_PV}" |
155 |
@@ -15,7 +15,7 @@ SRC_PATH="stable" |
156 |
|
157 |
SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz" |
158 |
[[ ${PV} = *_rc* ]] || \ |
159 |
-KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" |
160 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" |
161 |
|
162 |
DESCRIPTION="Samba Suite Version 4" |
163 |
HOMEPAGE="https://www.samba.org/" |
164 |
@@ -267,6 +267,20 @@ multilib_src_install() { |
165 |
systemd_dounit "${FILESDIR}"/winbindd.service |
166 |
systemd_dounit "${FILESDIR}"/samba.service |
167 |
fi |
168 |
+ |
169 |
+ if use pam and use winbind ; then |
170 |
+ newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
171 |
+ # bugs #376853 and #590374 |
172 |
+ insinto /etc/security |
173 |
+ doins examples/pam_winbind/pam_winbind.conf || die |
174 |
+ fi |
175 |
+ |
176 |
+ keepdir /var/cache/samba |
177 |
+ keepdir /var/lib/ctdb |
178 |
+ keepdir /var/lib/samba/{bind-dns,private} |
179 |
+ keepdir /var/lock/samba |
180 |
+ keepdir /var/log/samba |
181 |
+ keepdir /var/run/{ctdb,samba} |
182 |
} |
183 |
|
184 |
multilib_src_test() { |
185 |
|
186 |
diff --git a/net-fs/samba/samba-4.8.8.ebuild b/net-fs/samba/samba-4.8.8-r1.ebuild |
187 |
similarity index 95% |
188 |
rename from net-fs/samba/samba-4.8.8.ebuild |
189 |
rename to net-fs/samba/samba-4.8.8-r1.ebuild |
190 |
index 1d5b5c8adae..6376062b6f9 100644 |
191 |
--- a/net-fs/samba/samba-4.8.8.ebuild |
192 |
+++ b/net-fs/samba/samba-4.8.8-r1.ebuild |
193 |
@@ -1,11 +1,11 @@ |
194 |
-# Copyright 1999-2018 Gentoo Authors |
195 |
+# Copyright 1999-2019 Gentoo Authors |
196 |
# Distributed under the terms of the GNU General Public License v2 |
197 |
|
198 |
EAPI=6 |
199 |
PYTHON_COMPAT=( python2_7 ) |
200 |
PYTHON_REQ_USE='threads(+),xml(+)' |
201 |
|
202 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd |
203 |
+inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam |
204 |
|
205 |
MY_PV="${PV/_rc/rc}" |
206 |
MY_P="${PN}-${MY_PV}" |
207 |
@@ -267,6 +267,20 @@ multilib_src_install() { |
208 |
systemd_dounit "${FILESDIR}"/winbindd.service |
209 |
systemd_dounit "${FILESDIR}"/samba.service |
210 |
fi |
211 |
+ |
212 |
+ if use pam and use winbind ; then |
213 |
+ newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
214 |
+ # bugs #376853 and #590374 |
215 |
+ insinto /etc/security |
216 |
+ doins examples/pam_winbind/pam_winbind.conf || die |
217 |
+ fi |
218 |
+ |
219 |
+ keepdir /var/cache/samba |
220 |
+ keepdir /var/lib/ctdb |
221 |
+ keepdir /var/lib/samba/{bind-dns,private} |
222 |
+ keepdir /var/lock/samba |
223 |
+ keepdir /var/log/samba |
224 |
+ keepdir /var/run/{ctdb,samba} |
225 |
} |
226 |
|
227 |
multilib_src_test() { |
228 |
|
229 |
diff --git a/net-fs/samba/samba-4.9.4.ebuild b/net-fs/samba/samba-4.9.4-r1.ebuild |
230 |
similarity index 95% |
231 |
rename from net-fs/samba/samba-4.9.4.ebuild |
232 |
rename to net-fs/samba/samba-4.9.4-r1.ebuild |
233 |
index 4a1864afed9..663fc4ceffc 100644 |
234 |
--- a/net-fs/samba/samba-4.9.4.ebuild |
235 |
+++ b/net-fs/samba/samba-4.9.4-r1.ebuild |
236 |
@@ -1,11 +1,11 @@ |
237 |
-# Copyright 1999-2018 Gentoo Authors |
238 |
+# Copyright 1999-2019 Gentoo Authors |
239 |
# Distributed under the terms of the GNU General Public License v2 |
240 |
|
241 |
EAPI=6 |
242 |
PYTHON_COMPAT=( python2_7 ) |
243 |
PYTHON_REQ_USE='threads(+),xml(+)' |
244 |
|
245 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd |
246 |
+inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam |
247 |
|
248 |
MY_PV="${PV/_rc/rc}" |
249 |
MY_P="${PN}-${MY_PV}" |
250 |
@@ -271,6 +271,20 @@ multilib_src_install() { |
251 |
systemd_dounit "${FILESDIR}"/winbindd.service |
252 |
systemd_dounit "${FILESDIR}"/samba.service |
253 |
fi |
254 |
+ |
255 |
+ if use pam and use winbind ; then |
256 |
+ newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
257 |
+ # bugs #376853 and #590374 |
258 |
+ insinto /etc/security |
259 |
+ doins examples/pam_winbind/pam_winbind.conf || die |
260 |
+ fi |
261 |
+ |
262 |
+ keepdir /var/cache/samba |
263 |
+ keepdir /var/lib/ctdb |
264 |
+ keepdir /var/lib/samba/{bind-dns,private} |
265 |
+ keepdir /var/lock/samba |
266 |
+ keepdir /var/log/samba |
267 |
+ keepdir /var/run/{ctdb,samba} |
268 |
} |
269 |
|
270 |
multilib_src_test() { |