selftest: Prime the netlogon cache during test_idmap_rfc2307
authorAndrew Bartlett <abartlet@samba.org>
Sat, 1 Jul 2017 10:20:17 +0000 (22:20 +1200)
committerStefan Metzmacher <metze@samba.org>
Sun, 2 Jul 2017 19:59:18 +0000 (21:59 +0200)
commit0cfef7f50efcb5e1c9d1c35e54c29796b6aabe26
tree51b4ac1d9919517aca4a6a32e9a4e6b8da644ab2
parenteb26522a5265ea9be4e31beb5cd819fb15316f28
selftest: Prime the netlogon cache during test_idmap_rfc2307

This ensures that the group memberships just created are reflected in the test
comparison.  Otherwise we are trusting that no caches are primed, which is
simply not safe in a test.

(The login will put a list of groups, as obtained by the login over NETLOGON or
via the PAC, into the samlogon cache).

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Jul  2 21:59:18 CEST 2017 on sn-devel-144
nsswitch/tests/test_idmap_rfc2307.sh