diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-05-27 06:27:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:20 -0500 |
commit | 7f3d4cc9805bbe2455d663544bbe01bb4b6da09a (patch) | |
tree | 95cddf63a068627fbb32e9348f3a36101fb8ba62 /source4/script | |
parent | 7a6d86fbc9610d57e7386f969743b8451cae9351 (diff) | |
download | samba-7f3d4cc9805bbe2455d663544bbe01bb4b6da09a.tar.gz samba-7f3d4cc9805bbe2455d663544bbe01bb4b6da09a.tar.bz2 samba-7f3d4cc9805bbe2455d663544bbe01bb4b6da09a.zip |
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)
Diffstat (limited to 'source4/script')
-rwxr-xr-x | source4/script/provision.pl | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |