From 7f3d4cc9805bbe2455d663544bbe01bb4b6da09a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 27 May 2004 06:27:21 +0000 Subject: r919: - added lsa_QueryInfoPolicy2() to IDL, test suite and server - added lsa_OpenPolicy2() to server - added guid handling in samdb - added a couple more info policy levels in lsa server - added some DNS info in the provisioning template and script With the above changes WinXP professional can join a Samba4 domain (This used to be commit d6dca96352144d6061175c964069ed54d942b9c2) --- source4/script/provision.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source4/script') diff --git a/source4/script/provision.pl b/source4/script/provision.pl index e71c065328..8bafa6a030 100755 --- a/source4/script/provision.pl +++ b/source4/script/provision.pl @@ -27,7 +27,8 @@ sub randguid() my $r3 = int(rand(2**16)); my $r4 = int(rand(2**16)); my $r5 = int(rand(2**32)); - return sprintf("%08x-%04x-%04x-%04x-%08x", $r1, $r2, $r3, $r4, $r5); + my $r6 = int(rand(2**16)); + return sprintf("%08x-%04x-%04x-%04x-%08x%04x", $r1, $r2, $r3, $r4, $r5, $r6); } sub randsid() @@ -63,6 +64,10 @@ sub substitute($) return $domain; } + if ($var eq "REALM") { + return $realm; + } + if ($var eq "HOSTNAME") { return $hostname; } -- cgit