diff options
Diffstat (limited to 'src/config')
-rwxr-xr-x | src/config/SSSDConfigTest.py | 5 | ||||
-rw-r--r-- | src/config/testconfigs/sssd-valid.conf | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py index 2d637bb99..127ad22cf 100755 --- a/src/config/SSSDConfigTest.py +++ b/src/config/SSSDConfigTest.py @@ -1323,7 +1323,12 @@ class SSSDConfigTestSSSDConfig(unittest.TestCase): self.assertTrue(isinstance(domain, SSSDConfig.SSSDDomain)) self.assertTrue(domain.active) + domain = sssdconfig.get_domain('LDAP') + self.assertTrue(isinstance(domain, SSSDConfig.SSSDDomain)) + self.assertFalse(domain.active) + # TODO verify the contents of this domain + self.assertTrue(domain.get_option('ldap_id_use_start_tls')) # Negative Test - No such domain self.assertRaises(SSSDConfig.NoDomainError, sssdconfig.get_domain, 'nosuchdomain') diff --git a/src/config/testconfigs/sssd-valid.conf b/src/config/testconfigs/sssd-valid.conf index 79016eb4f..3c2dda80c 100644 --- a/src/config/testconfigs/sssd-valid.conf +++ b/src/config/testconfigs/sssd-valid.conf @@ -31,6 +31,7 @@ auth_provider = local debug_level = 0 [domain/LDAP] +ldap_id_use_start_tls = true id_provider = ldap auth_provider=ldap debug_level = 0 |