s4-samba3samtest: force workgroup so the domain is right
authorAndrew Tridgell <tridge@samba.org>
Fri, 8 Jan 2010 01:45:49 +0000 (12:45 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 8 Jan 2010 02:03:07 +0000 (13:03 +1100)
the samba3sid backend looks at lp_sam_name() which is based on the
workgroup

source4/dsdb/samdb/ldb_modules/tests/samba3sam.py

index 8d4047b0b8cd6dc36f87b3149296945c5920c332..78b7eca0773b79dd408ffa9156ac2f6f675db367 100644 (file)
@@ -61,6 +61,7 @@ class MapBaseTestCase(TestCaseInTempDir):
 
     def setUp(self):
         cmdline_loadparm.set("sid generator", "backend")
 
     def setUp(self):
         cmdline_loadparm.set("sid generator", "backend")
+        cmdline_loadparm.set("workgroup", "TESTS")
         super(MapBaseTestCase, self).setUp()
 
         def make_dn(basedn, rdn):
         super(MapBaseTestCase, self).setUp()
 
         def make_dn(basedn, rdn):