diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-04-11 11:09:34 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-04-11 11:09:34 +1000 |
commit | 9198a519bea19a4d9f863fde5fb3aa23f60b5c88 (patch) | |
tree | 1d45eabf27cb8a61ced7ac21361c870ab734a35a /source4/torture | |
parent | b202b6e7d45cebd9b34c8d319e75f423291b30a0 (diff) | |
download | samba-9198a519bea19a4d9f863fde5fb3aa23f60b5c88.tar.gz samba-9198a519bea19a4d9f863fde5fb3aa23f60b5c88.tar.xz samba-9198a519bea19a4d9f863fde5fb3aa23f60b5c88.zip |
Set a netbios name into provision, and zero the rest.
Remove dns_name initialisation.
Andrew Bartlett
(This used to be commit e77ab2fbd1836bc2f9c7b2a819b06ddccf1fa78f)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/local/torture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/local/torture.c b/source4/torture/local/torture.c index 718bd38aad0..83c531124d2 100644 --- a/source4/torture/local/torture.c +++ b/source4/torture/local/torture.c @@ -43,14 +43,13 @@ static bool test_tempdir(struct torture_context *tctx) static bool test_provision(struct torture_context *tctx) { NTSTATUS status; - struct provision_settings *settings = talloc(tctx, struct provision_settings); + struct provision_settings *settings = talloc_zero(tctx, struct provision_settings); char *targetdir = NULL; torture_assert_ntstatus_ok(tctx, torture_temp_dir(tctx, "torture_provision", &targetdir), "torture_temp_dir should return NT_STATUS_OK" ); settings->targetdir = talloc_steal(settings, targetdir); - settings->dns_name = "example.com"; settings->site_name = "SOME-SITE-NAME"; settings->root_dn_str = "DC=EXAMPLE,DC=COM"; settings->domain_dn_str = "DC=EXAMPLE,DC=COM"; @@ -60,6 +59,7 @@ static bool test_provision(struct torture_context *tctx) settings->netbios_name = "FOO"; settings->realm = "EXAMPLE.COM"; settings->domain = "EXAMPLE"; + settings->netbios_name = "torture"; settings->ntds_guid = NULL; settings->ntds_dn_str = NULL; settings->machine_password = "geheim"; |