selftest: Test ID_TYPE_BOTH with idmap_rid module
commit485874d6bb328c50c9a98785e85270f28ade7497
authorChristof Schmitt <cs@samba.org>
Thu, 26 Sep 2019 00:19:27 +0000 (25 17:19 -0700)
committerChristof Schmitt <cs@samba.org>
Fri, 27 Sep 2019 16:07:40 +0000 (27 16:07 +0000)
treed90bdbc038400f21f7872db8cf404147be8c9406
parent18e2d6b0098232c2bd8d51320095d35bd7301920
selftest: Test ID_TYPE_BOTH with idmap_rid module

ID_TYPE_BOTH means that each user and group has two mappings, a uid and
gid. In addition the calls to getpwent, getpwuid, getgrent and getgrgid
always return some information, so that uid and gid can be mapped to a
name. Establish a test to verify that the expected information is
returned.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
nsswitch/tests/test_idmap_rid.sh
selftest/knownfail.d/passwd-id-type-both [new file with mode: 0644]