summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/samba/samba-4.1.12/07-fix-idmap-ad-getgroups-without-gid.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-connectivity/samba/samba-4.1.12/07-fix-idmap-ad-getgroups-without-gid.patch')
-rw-r--r--meta-oe/recipes-connectivity/samba/samba-4.1.12/07-fix-idmap-ad-getgroups-without-gid.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/meta-oe/recipes-connectivity/samba/samba-4.1.12/07-fix-idmap-ad-getgroups-without-gid.patch b/meta-oe/recipes-connectivity/samba/samba-4.1.12/07-fix-idmap-ad-getgroups-without-gid.patch
deleted file mode 100644
index 3215f2c87..000000000
--- a/meta-oe/recipes-connectivity/samba/samba-4.1.12/07-fix-idmap-ad-getgroups-without-gid.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 23dfa2e35bec9c0f6c3d579e7dc2e1d0ce636aa2 Mon Sep 17 00:00:00 2001
2From: Andreas Schneider <asn@samba.org>
3Date: Fri, 19 Sep 2014 13:33:10 +0200
4Subject: [PATCH] nsswitch: Skip groups we were not able to map.
5
6If we have configured the idmap_ad backend it is possible that the user
7is in a group without a gid set. This will result in (uid_t)-1 as the
8gid. We return this invalid gid to NSS which is wrong.
9
10BUG: https://bugzilla.samba.org/show_bug.cgi?id=10824
11
12Signed-off-by: Andreas Schneider <asn@samba.org>
13Reviewed-by: David Disseldorp <ddiss@samba.org>
14
15Autobuild-User(master): David Disseldorp <ddiss@samba.org>
16Autobuild-Date(master): Fri Sep 19 17:57:14 CEST 2014 on sn-devel-104
17
18(cherry picked from commit 7f59711f076e98ece099f6b38ff6da8c80fa6d5e)
19Signed-off-by: Andreas Schneider <asn@samba.org>
20---
21 nsswitch/winbind_nss_linux.c | 5 +++++
22 1 file changed, 5 insertions(+)
23
24diff --git a/nsswitch/winbind_nss_linux.c b/nsswitch/winbind_nss_linux.c
25index 8d66a74..70ede3e 100644
26--- a/nsswitch/winbind_nss_linux.c
27+++ b/nsswitch/winbind_nss_linux.c
28@@ -1101,6 +1101,11 @@ _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
29 continue;
30 }
31
32+ /* Skip groups without a mapping */
33+ if (gid_list[i] == (uid_t)-1) {
34+ continue;
35+ }
36+
37 /* Filled buffer ? If so, resize. */
38
39 if (*start == *size) {
40--
412.1.0
42