mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
gpupdate: Test that PAM Access uses winbind separator
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
f3fad5a189
commit
893cfefa9e
@ -6415,6 +6415,9 @@ class GPOTests(tests.TestCase):
|
||||
machine_creds.set_machine_account()
|
||||
|
||||
# Initialize the group policy extension
|
||||
winbind_sep = self.lp.get('winbind separator')
|
||||
self.addCleanup(self.lp.set, 'winbind separator', winbind_sep)
|
||||
self.lp.set('winbind separator', '+')
|
||||
ext = vgp_access_ext(self.lp, machine_creds,
|
||||
machine_creds.get_username(), store)
|
||||
|
||||
@ -6517,10 +6520,10 @@ class GPOTests(tests.TestCase):
|
||||
# Check the access config for the correct access.conf entries
|
||||
print('Config file %s found' % gp_cfg)
|
||||
data = open(gp_cfg, 'r').read()
|
||||
self.assertIn('+:%s\\goodguy:ALL' % realm, data)
|
||||
self.assertIn('+:%s\\goodguys:ALL' % realm, data)
|
||||
self.assertIn('-:%s\\badguy:ALL' % realm, data)
|
||||
self.assertIn('-:%s\\badguys:ALL' % realm, data)
|
||||
self.assertIn('+:%s+goodguy:ALL' % realm, data)
|
||||
self.assertIn('+:%s+goodguys:ALL' % realm, data)
|
||||
self.assertIn('-:%s+badguy:ALL' % realm, data)
|
||||
self.assertIn('-:%s+badguys:ALL' % realm, data)
|
||||
|
||||
# Check that a call to gpupdate --rsop also succeeds
|
||||
ret = rsop(self.lp)
|
||||
|
1
selftest/knownfail.d/gpo
Normal file
1
selftest/knownfail.d/gpo
Normal file
@ -0,0 +1 @@
|
||||
samba.tests.gpo.samba.tests.gpo.GPOTests.test_vgp_access
|
Loading…
Reference in New Issue
Block a user