From: Volker Lendecke Date: Sun, 30 Aug 2020 09:45:56 +0000 (+0200) Subject: tests: Make sure that idmap_ad retrieves unix nss attributes X-Git-Tag: talloc-2.3.2~656 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50d900b6f9b8c35e673fc280efd505121a7579d3;p=thirdparty%2Fsamba.git tests: Make sure that idmap_ad retrieves unix nss attributes Make sure that unix_primary_group and unix_nss_info idmap_ad options work. We have two domains here and test wbinfo -i for both domains, so we also run the test without those options for the trusted domain. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Sep 2 10:35:53 UTC 2020 on sn-devel-184 --- diff --git a/nsswitch/tests/test_idmap_ad.sh b/nsswitch/tests/test_idmap_ad.sh index 46c637f7649..d634b82ba14 100755 --- a/nsswitch/tests/test_idmap_ad.sh +++ b/nsswitch/tests/test_idmap_ad.sh @@ -55,6 +55,14 @@ dn: CN=Administrator,CN=Users,$BASE_DN changetype: modify add: uidNumber uidNumber: 2000000 +add: gidNumber +gidNumber: 2000100 +add: unixHomeDirectory +unixHomeDirectory: /home/admin +add: loginShell +loginShell: /bin/tcsh +add: gecos +gecos: Administrator Full Name EOF cat <{DOMAIN} : backend = ad idmap config $dcvars->{DOMAIN} : range = 2000000-2999999 + idmap config $dcvars->{DOMAIN} : unix_primary_group = yes + idmap config $dcvars->{DOMAIN} : unix_nss_info = yes idmap config $dcvars->{TRUST_DOMAIN} : backend = ad idmap config $dcvars->{TRUST_DOMAIN} : range = 2000000-2999999 gensec_gssapi:requested_life_time = 5