diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-03-06 21:55:26 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-03-06 21:55:26 +1100 |
commit | 7e0ef3fd0ef4dba827f331cbe43fa0524be91130 (patch) | |
tree | d281875ff8563b9abaf96d39d7938d61c8e53054 /source4/dsdb/samdb/ldb_modules/schema_fsmo.c | |
parent | 3ced8006a6a58b459fd68e9b02d7673b16b2df95 (diff) | |
download | samba-7e0ef3fd0ef4dba827f331cbe43fa0524be91130.tar.gz samba-7e0ef3fd0ef4dba827f331cbe43fa0524be91130.tar.bz2 samba-7e0ef3fd0ef4dba827f331cbe43fa0524be91130.zip |
Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again).
To make Samba4, using the python provision system, pass this test
required some major rework. Untested code is broken code, and some of
the refactoring for a seperate provision test (which also now passes)
broke things.
Similarly, the iconv work has compiled, but these codepaths have never
been run (NULL pointer de-reference).
In working to use a local, rather than global, loadparm context, and
to support using a target directory, a few things needed to be
reworked, particularly around path handling.
Andrew Bartlett
(This used to be commit 1169e8d7bee20477b0efbfea3534ac63c83fb3d6)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/schema_fsmo.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/schema_fsmo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_fsmo.c b/source4/dsdb/samdb/ldb_modules/schema_fsmo.c index 729fd15202..8ceeba9804 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_fsmo.c +++ b/source4/dsdb/samdb/ldb_modules/schema_fsmo.c @@ -30,6 +30,7 @@ #include "librpc/gen_ndr/ndr_drsuapi.h" #include "librpc/gen_ndr/ndr_drsblobs.h" #include "lib/util/dlinklist.h" +#include "param/param.h" static int schema_fsmo_init(struct ldb_module *module) { @@ -78,7 +79,7 @@ static int schema_fsmo_init(struct ldb_module *module) } module->private_data = schema_fsmo; - schema = talloc_zero(mem_ctx, struct dsdb_schema); + schema = dsdb_new_schema(mem_ctx, lp_iconv_convenience(ldb_get_opaque(module->ldb, "loadparm"))); if (!schema) { ldb_oom(module->ldb); return LDB_ERR_OPERATIONS_ERROR; |