r12928: This patch improves the interaction between the vampire and provsion code.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 14 Jan 2006 06:17:24 +0000 (06:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:07 +0000 (13:51 -0500)
commita38ceefd11f8b748f30383ef36a4752f178bfca1
treec7179352abc52816671866fe095ba6bf7930f96a
parent01e98966ca955e86ec46f8bce3892899e2717df9
r12928: This patch improves the interaction between the vampire and provsion code.

Previously, we had to know (or guess) the host and domain guid at the
provision stage.  Now we query the database post-provision, to extract
the values and fill in the zone file.

This allows us to generate a correct zone file in the Windows migration case.

In an effort to make SWAT easier to use, I have removed and renamed
some of the provision options.

I have also fixed a nasty issue in my js code.  I had implictly
declared a global variable of the name 'join', with disasterious
results for any subsequent user of the string utility function:

esp exception - ASSERT at lib/appweb/ejs/ejsParser.c:2064, 0

Backtrace:
        [ 0]       substitute_var:20   ->               list[i] = join("", list2)
        [ 1]           setup_file:9    ->       data = substitute_var(data, subobj)

Andrew Bartlett
source/libnet/libnet_samsync_ldb.c
source/libnet/libnet_vampire.h
source/scripting/ejs/ejsnet.c
source/scripting/libjs/provision.js
source/utils/net/net_vampire.c
swat/install/provision.esp
swat/install/vampire.esp