diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-01-14 06:17:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:07 -0500 |
commit | f3db23ac75578198ee411b21a7ba2ec49dedafab (patch) | |
tree | 4625f46ea496e475be03e8c94d968d15f56e9693 /source4/utils | |
parent | ae51cc9bec8bc5d6efd035ac6e594aa7cc108ffe (diff) | |
download | samba-f3db23ac75578198ee411b21a7ba2ec49dedafab.tar.gz samba-f3db23ac75578198ee411b21a7ba2ec49dedafab.tar.xz samba-f3db23ac75578198ee411b21a7ba2ec49dedafab.zip |
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
(This used to be commit a38ceefd11f8b748f30383ef36a4752f178bfca1)
Diffstat (limited to 'source4/utils')
-rw-r--r-- | source4/utils/net/net_vampire.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/utils/net/net_vampire.c b/source4/utils/net/net_vampire.c index f89739225d9..00ae647016e 100644 --- a/source4/utils/net/net_vampire.c +++ b/source4/utils/net/net_vampire.c @@ -24,6 +24,7 @@ #include "utils/net/net.h" #include "libnet/libnet.h" #include "librpc/gen_ndr/ndr_samr.h" +#include "auth/auth.h" static int net_samdump_keytab_usage(struct net_context *ctx, int argc, const char **argv) { @@ -150,7 +151,10 @@ int net_samsync_ldb(struct net_context *ctx, int argc, const char **argv) r.in.machine_account = NULL; r.in.binding_string = NULL; - status = libnet_samsync_ldb(libnetctx, ctx->mem_ctx, &r); + /* Needed to override the ACLs on ldb */ + r.in.session_info = system_session(libnetctx); + + status = libnet_samsync_ldb(libnetctx, libnetctx, &r); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("libnet_samsync_ldb returned %s: %s\n", nt_errstr(status), |