diff options
-rw-r--r-- | selftest/target/Samba4.pm | 4 | ||||
-rwxr-xr-x | source4/scripting/bin/testparm | 4 | ||||
-rwxr-xr-x | source4/setup/provision | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index cd88a93114..c19f162d62 100644 --- a/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm @@ -669,13 +669,13 @@ nogroup:x:65534:nobody my $configuration = "--configfile=$ctx->{smb_conf}"; #Ensure the config file is valid before we start - my $testparm = $self->bindir_path("testparm"); + my $testparm = $self->bindir_path("../scripting/bin/testparm"); if (system("$testparm $configuration -v --suppress-prompt >/dev/null 2>&1") != 0) { system("$testparm -v --suppress-prompt $configuration >&2"); die("Failed to create a valid smb.conf configuration $testparm!"); } - (system("($testparm $configuration -v --suppress-prompt --parameter-name=\"netbios name\" --section-name=global 2> /dev/null | grep -i \"^$ctx->{netbiosname}\" ) >/dev/null 2>&1") == 0) or die("Failed to create a valid smb.conf configuration! $self->{bindir}/testparm $configuration -v --suppress-prompt --parameter-name=\"netbios name\" --section-name=global"); + (system("($testparm $configuration -v --suppress-prompt --parameter-name=\"netbios name\" --section-name=global 2> /dev/null | grep -i \"^$ctx->{netbiosname}\" ) >/dev/null 2>&1") == 0) or die("Failed to create a valid smb.conf configuration! $testparm $configuration -v --suppress-prompt --parameter-name=\"netbios name\" --section-name=global"); my $ret = { KRB5_CONFIG => $ctx->{krb5_conf}, diff --git a/source4/scripting/bin/testparm b/source4/scripting/bin/testparm index 95adcf3f16..c2f8bc853f 100755 --- a/source4/scripting/bin/testparm +++ b/source4/scripting/bin/testparm @@ -57,7 +57,7 @@ def do_global_checks(lp, logger): piddir = lp.get("pid directory") - if os.path.isdir(piddir): + if not os.path.isdir(piddir): logger.error("pid directory %s does not exist", piddir) valid = False @@ -125,7 +125,7 @@ if __name__ == '__main__': help="Client IP address for 'hosts allow' checking") parser.add_option("--suppress-prompt", action="store_true", default=False, help="Suppress prompt for enter") - parser.add_option("--verbose", action="store_true", + parser.add_option("-v", "--verbose", action="store_true", default=False, help="Show default options too") parser.add_option_group(options.VersionOptions(parser)) # We need support for smb.conf macros before this will work again diff --git a/source4/setup/provision b/source4/setup/provision index 58bf804ab0..264245a72c 100755 --- a/source4/setup/provision +++ b/source4/setup/provision @@ -252,7 +252,8 @@ try: backend_type=opts.ldap_backend_type, ldapadminpass=opts.ldapadminpass, ol_mmr_urls=opts.ol_mmr_urls, slapd_path=opts.slapd_path, setup_ds_path=opts.setup_ds_path, - nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,useeadb=eadb) + nosync=opts.nosync, ldap_dryrun_mode=opts.ldap_dryrun_mode, + useeadb=eadb) except ProvisioningError, e: print str(e) exit(1) |