CVE-2020-25717: selftest: turn ad_member_no_nss_wb into ad_member_idmap_nss
commita40c007fb5574cc781b60ab948477dcd9dd05aab
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 12 Nov 2021 01:20:45 +0000 (12 14:20 +1300)
committerJule Anger <janger@samba.org>
Wed, 17 Nov 2021 14:35:14 +0000 (17 14:35 +0000)
tree41cfdd43af14faf99015cb4f1a32ec7861127cfb
parent0a56d233bfdb48bb2222891f7abfe054769b2ef2
CVE-2020-25717: selftest: turn ad_member_no_nss_wb into ad_member_idmap_nss

In reality environments without 'nss_winbind' make use of 'idmap_nss'.

For testing, DOMAIN/bob is mapped to the local 'bob',
while DOMAIN/jane gets the uid based on the local 'jane'
vis idmap_nss.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14901

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
[metze@samba.org avoid to create a new ad_member_idmap_nss environment
and merge it with ad_member_no_nss_wb instead]
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 8a9f2aa2c1cdfa72ad50d7c4f879220fe37654cd)
selftest/target/Samba.pm
selftest/target/Samba3.pm
source4/selftest/tests.py