From: Joseph Sutton Date: Thu, 15 Dec 2022 23:41:50 +0000 (+1300) Subject: s4-dsdb: Use correct primary group SID in token group test X-Git-Tag: talloc-2.4.1~1652 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e213629356b2f3dd8b31713ebad317353665fd8;p=thirdparty%2Fsamba.git s4-dsdb: Use correct primary group SID in token group test This test will thereby continue to pass when we correct the handling of primary groups. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/tests/python/token_group.py b/source4/dsdb/tests/python/token_group.py index 2f81aab076f..e5a15ee206d 100755 --- a/source4/dsdb/tests/python/token_group.py +++ b/source4/dsdb/tests/python/token_group.py @@ -668,7 +668,7 @@ class DynamicTokenTest(samba.tests.TestCase): memberOf = set() # Add the primary group primary_group_sid = "%s-%d" % (domain_sid, user_info.primary_gid) - res2 = self.admin_ldb.search(base="" % sid, scope=ldb.SCOPE_BASE, + res2 = self.admin_ldb.search(base="" % primary_group_sid, scope=ldb.SCOPE_BASE, attrs=[]) memberOf.add(res2[0].dn.get_casefold())