selftest fl2000dc provision with --plaintext-secrets
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 14 Dec 2017 18:27:10 +0000 (07:27 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 17 Dec 2017 23:10:17 +0000 (00:10 +0100)
Provision fl2000dc provision with --plaintext-secrets to test that the
--plaintext-secrets option functions correctly.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/knownfail.d/encrypted_secrets
selftest/target/Samba4.pm

index a8452fb447784f2be05f75b40dc80e839c71af03..a701d1d9d7e125b2f97345cc305ec455854988a6 100644 (file)
@@ -4,5 +4,5 @@
 #   * --plaintext-secrets option correctly provisions a domain
 #   * the dsdb operational module correctly handles unencrypted secrets
 #   * secrets are not stored as encrypted text when this option is specified
-#^samba.tests.encrypted_secrets.samba.tests.encrypted_secrets.EncryptedSecretsTests.test_encrypted_secrets\(fl2000dc:local\)
-#^samba.tests.encrypted_secrets.samba.tests.encrypted_secrets.EncryptedSecretsTests.test_required_features\(fl2000dc:local\)
+^samba.tests.encrypted_secrets.samba.tests.encrypted_secrets.EncryptedSecretsTests.test_encrypted_secrets\(fl2000dc:local\)
+^samba.tests.encrypted_secrets.samba.tests.encrypted_secrets.EncryptedSecretsTests.test_required_features\(fl2000dc:local\)
index 68feb6b46739cef74162e5d695fe99033d6e3526..e2e78abd0bb402c841d54b5f6d4fcdb7fe5966e9 100755 (executable)
@@ -1506,6 +1506,12 @@ sub provision_fl2000dc($$)
        spnego:simulate_w2k=yes
        ntlmssp_server:force_old_spnego=yes
 ";
+       my $extra_provision_options = undef;
+       # This environment uses plain text secrets
+       # i.e. secret attributes are not encrypted on disk.
+       # This allows testing of the --plaintext-secrets option for
+       # provision
+       push (@{$extra_provision_options}, "--plaintext-secrets");
        my $ret = $self->provision($prefix,
                                   "domain controller",
                                   "dc5",
@@ -1517,7 +1523,7 @@ sub provision_fl2000dc($$)
                                   undef,
                                   $extra_conf_options,
                                   "",
-                                  undef);
+                                  $extra_provision_options);
        unless ($ret) {
                return undef;
        }