diff options
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.patch | 42 |
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 @@ | |||
1 | From 23dfa2e35bec9c0f6c3d579e7dc2e1d0ce636aa2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andreas Schneider <asn@samba.org> | ||
3 | Date: Fri, 19 Sep 2014 13:33:10 +0200 | ||
4 | Subject: [PATCH] nsswitch: Skip groups we were not able to map. | ||
5 | |||
6 | If we have configured the idmap_ad backend it is possible that the user | ||
7 | is in a group without a gid set. This will result in (uid_t)-1 as the | ||
8 | gid. We return this invalid gid to NSS which is wrong. | ||
9 | |||
10 | BUG: https://bugzilla.samba.org/show_bug.cgi?id=10824 | ||
11 | |||
12 | Signed-off-by: Andreas Schneider <asn@samba.org> | ||
13 | Reviewed-by: David Disseldorp <ddiss@samba.org> | ||
14 | |||
15 | Autobuild-User(master): David Disseldorp <ddiss@samba.org> | ||
16 | Autobuild-Date(master): Fri Sep 19 17:57:14 CEST 2014 on sn-devel-104 | ||
17 | |||
18 | (cherry picked from commit 7f59711f076e98ece099f6b38ff6da8c80fa6d5e) | ||
19 | Signed-off-by: Andreas Schneider <asn@samba.org> | ||
20 | --- | ||
21 | nsswitch/winbind_nss_linux.c | 5 +++++ | ||
22 | 1 file changed, 5 insertions(+) | ||
23 | |||
24 | diff --git a/nsswitch/winbind_nss_linux.c b/nsswitch/winbind_nss_linux.c | ||
25 | index 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 | -- | ||
41 | 2.1.0 | ||
42 | |||