svn commit: samba r23699 - in branches/SAMBA_4_0/source/dsdb/schema: .

tridge at samba.org tridge at samba.org
Wed Jul 4 05:15:07 GMT 2007


Author: tridge
Date: 2007-07-04 05:15:06 +0000 (Wed, 04 Jul 2007)
New Revision: 23699

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23699

Log:

when we create the global schema, remember to set the ldb opaque so we
can find it again

Modified:
   branches/SAMBA_4_0/source/dsdb/schema/schema_init.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/schema/schema_init.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/schema/schema_init.c	2007-07-04 04:18:44 UTC (rev 23698)
+++ branches/SAMBA_4_0/source/dsdb/schema/schema_init.c	2007-07-04 05:15:06 UTC (rev 23699)
@@ -1016,7 +1016,7 @@
 {
 	int ret;
 	if (!global_schema) {
-	  return LDB_SUCCESS;
+		return LDB_SUCCESS;
 	}
 	ret = ldb_set_opaque(ldb, "dsdb_schema", global_schema);
 	if (ret != LDB_SUCCESS) {
@@ -1063,6 +1063,8 @@
 
 	talloc_steal(talloc_autofree_context(), schema);
 	global_schema = schema;
+
+	dsdb_set_global_schema(ldb);
 }
 
 WERROR dsdb_attach_schema_from_ldif_file(struct ldb_context *ldb, const char *pf, const char *df)



More information about the samba-cvs mailing list