summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-04-22 02:55:03 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-04-29 04:54:05 +0300
commit5bf12e101aa729619758c38af5c682b2cd06ea70 (patch)
treecc6619ad301fe784bda2e8d622661cee3afbbb33 /source4/dsdb/schema
parent2bf23735fa9d50954086d09f2e3ebd32390e2fa9 (diff)
downloadsamba-5bf12e101aa729619758c38af5c682b2cd06ea70.tar.gz
samba-5bf12e101aa729619758c38af5c682b2cd06ea70.tar.bz2
samba-5bf12e101aa729619758c38af5c682b2cd06ea70.zip
Revert "s4/dsdb: Set schemaInfo attribute value during provisioning"
This reverts commit 8149094eddebd9a0e8b7c123c2ed54d00164bb26. Windows implementation does not set schemaInfo attribute value until first Schema update request. This way, newly provisioned forest returns no schemaInfo value. I think it won't be bad for us to have this value preset, but I want to mimic Win AD behavior as close as possible.
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r--source4/dsdb/schema/schema_info_attr.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/source4/dsdb/schema/schema_info_attr.c b/source4/dsdb/schema/schema_info_attr.c
index 132c72a376..855bc6f08c 100644
--- a/source4/dsdb/schema/schema_info_attr.c
+++ b/source4/dsdb/schema/schema_info_attr.c
@@ -352,55 +352,6 @@ WERROR dsdb_schema_info_create(struct ldb_context *ldb, bool check_invocation_id
/**
- *
- * @param ldb
- * @param schema
- * @return
- */
-WERROR dsdb_schema_info_reset(struct ldb_context *ldb, struct dsdb_schema *schema)
-{
- int ldb_err;
- WERROR werr;
- DATA_BLOB blob;
- struct dsdb_schema_info *schema_info;
- struct ldb_message *msg;
- TALLOC_CTX *temp_ctx;
-
- temp_ctx = talloc_new(ldb);
- W_ERROR_HAVE_NO_MEMORY(temp_ctx);
-
- /* create default schemaInfo value */
- werr = dsdb_schema_info_create(ldb, true, temp_ctx, &schema_info);
- W_ERROR_NOT_OK_GOTO(werr, DONE);
-
- /* serialize schemaInfo to be stored in LDB and schema cache */
- werr = dsdb_blob_from_schema_info(schema_info, temp_ctx, &blob);
- W_ERROR_NOT_OK_GOTO(werr, DONE);
-
- /* store initial schemaInfo in DB */
- werr = _dsdb_schema_info_write_prepare(ldb, &blob, temp_ctx, &msg);
- W_ERROR_NOT_OK_GOTO(werr, DONE);
-
- ldb_err = dsdb_modify(ldb, msg, 0);
- if (ldb_err != 0) {
- DEBUG(0,("dsdb_module_schema_info_blob_write: dsdb_replace failed: %s (%s)\n",
- ldb_strerror(ldb_err),
- ldb_errstring(ldb)));
- werr = WERR_INTERNAL_DB_ERROR;
- goto DONE;
- }
-
- /* update dsdb_schema cache */
- talloc_free(discard_const(schema->schema_info));
- schema->schema_info = data_blob_hex_string_upper(schema, &blob);
-
-DONE:
- talloc_free(temp_ctx);
- return werr;
-}
-
-
-/**
* Increments schemaInfo revision and save it to DB
* setting our invocationID in the process
* NOTE: this function should be called in a transaction