parser.print_usage()
sys.exit(1)
-host = args[0]
+host = os.getenv("SERVER", None)
+if not host:
+ print("Please specify the host with env variable SERVER")
+ sys.exit(1)
lp = sambaopts.get_loadparm()
creds = credopts.get_credentials(lp)
host = "tdb://%s" % host
else:
host = "ldap://%s" % host
-
-
-TestProgram(module=__name__, opts=subunitopts)