From 883949679089e8ef78cda56bdb243484d6c60b87 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 20 Oct 2004 02:13:45 +0000 Subject: r3078: Allow more things to be set as command line options to provision. Andrew Bartlett (This used to be commit 2df85686f55049276eb60cbc3ca4bc1cfa9f7f0f) --- source4/script/provision.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source4/script') diff --git a/source4/script/provision.pl b/source4/script/provision.pl index 326a7e60cf..4b51e9611b 100755 --- a/source4/script/provision.pl +++ b/source4/script/provision.pl @@ -41,7 +41,7 @@ sub randguid() return sprintf("%08x-%04x-%04x-%04x-%08x%04x", $r1, $r2, $r3, $r4, $r5, $r6); } -my $domainguid = randguid(); +my $opt_domainguid = randguid(); my $hostguid = randguid(); sub randsid() @@ -50,7 +50,7 @@ sub randsid() int(rand(10**8)), int(rand(10**8)), int(rand(10**8))); } -my $domainsid = randsid(); +my $opt_domainsid = randsid(); # generate a random password. Poor algorithm :( sub randpass() @@ -82,7 +82,7 @@ sub substitute($) } if ($var eq "DOMAINSID") { - return $domainsid; + return $opt_domainsid; } if ($var eq "DOMAIN") { @@ -122,7 +122,7 @@ sub substitute($) } if ($var eq "DOMAINGUID") { - return $domainguid; + return $opt_domainguid; } if ($var eq "HOSTGUID") { @@ -246,6 +246,8 @@ GetOptions( 'help|h|?' => \$opt_help, 'realm=s' => \$opt_realm, 'domain=s' => \$opt_domain, + 'domain-guid=s' => \$opt_domainguid, + 'domain-sid=s' => \$opt_domainsid, 'hostname=s' => \$opt_hostname, 'hostip=s' => \$opt_hostip, 'adminpass=s' => \$opt_adminpass, -- cgit