mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
committed by
Stefan Metzmacher
parent
63f53094ef
commit
2fef113e82
@ -52,7 +52,7 @@ static int naming_fsmo_init(struct ldb_module *module)
|
|||||||
naming_dn = samdb_partitions_dn(module->ldb, mem_ctx);
|
naming_dn = samdb_partitions_dn(module->ldb, mem_ctx);
|
||||||
if (!naming_dn) {
|
if (!naming_dn) {
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
||||||
"naming_fsmo_init: no partitions dn present: (skip loading of naming contexts details)");
|
"naming_fsmo_init: no partitions dn present: (skip loading of naming contexts details)\n");
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ldb_next_init(module);
|
return ldb_next_init(module);
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ static int naming_fsmo_init(struct ldb_module *module)
|
|||||||
&naming_res);
|
&naming_res);
|
||||||
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
|
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
||||||
"naming_fsmo_init: no partitions dn present: (skip loading of naming contexts details)");
|
"naming_fsmo_init: no partitions dn present: (skip loading of naming contexts details)\n");
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ldb_next_init(module);
|
return ldb_next_init(module);
|
||||||
}
|
}
|
||||||
@ -84,7 +84,7 @@ static int naming_fsmo_init(struct ldb_module *module)
|
|||||||
talloc_steal(mem_ctx, naming_res);
|
talloc_steal(mem_ctx, naming_res);
|
||||||
if (naming_res->count == 0) {
|
if (naming_res->count == 0) {
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
||||||
"naming_fsmo_init: no cross-ref container present: (skip loading of naming contexts details)");
|
"naming_fsmo_init: no cross-ref container present: (skip loading of naming contexts details)\n");
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ldb_next_init(module);
|
return ldb_next_init(module);
|
||||||
} else if (naming_res->count > 1) {
|
} else if (naming_res->count > 1) {
|
||||||
@ -110,7 +110,7 @@ static int naming_fsmo_init(struct ldb_module *module)
|
|||||||
talloc_steal(module, naming_fsmo);
|
talloc_steal(module, naming_fsmo);
|
||||||
|
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_TRACE,
|
ldb_debug(module->ldb, LDB_DEBUG_TRACE,
|
||||||
"naming_fsmo_init: we are master: %s",
|
"naming_fsmo_init: we are master: %s\n",
|
||||||
(naming_fsmo->we_are_master?"yes":"no"));
|
(naming_fsmo->we_are_master?"yes":"no"));
|
||||||
|
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
|
@ -51,7 +51,7 @@ static int pdc_fsmo_init(struct ldb_module *module)
|
|||||||
pdc_dn = samdb_base_dn(module->ldb);
|
pdc_dn = samdb_base_dn(module->ldb);
|
||||||
if (!pdc_dn) {
|
if (!pdc_dn) {
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
||||||
"pdc_fsmo_init: no domain dn present: (skip loading of domain details)");
|
"pdc_fsmo_init: no domain dn present: (skip loading of domain details)\n");
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ldb_next_init(module);
|
return ldb_next_init(module);
|
||||||
}
|
}
|
||||||
@ -69,7 +69,7 @@ static int pdc_fsmo_init(struct ldb_module *module)
|
|||||||
&pdc_res);
|
&pdc_res);
|
||||||
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
|
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
||||||
"pdc_fsmo_init: no domain object present: (skip loading of domain details)");
|
"pdc_fsmo_init: no domain object present: (skip loading of domain details)\n");
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ldb_next_init(module);
|
return ldb_next_init(module);
|
||||||
} else if (ret != LDB_SUCCESS) {
|
} else if (ret != LDB_SUCCESS) {
|
||||||
@ -82,7 +82,7 @@ static int pdc_fsmo_init(struct ldb_module *module)
|
|||||||
talloc_steal(mem_ctx, pdc_res);
|
talloc_steal(mem_ctx, pdc_res);
|
||||||
if (pdc_res->count == 0) {
|
if (pdc_res->count == 0) {
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
||||||
"pdc_fsmo_init: no domain object present: (skip loading of domain details)");
|
"pdc_fsmo_init: no domain object present: (skip loading of domain details)\n");
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ldb_next_init(module);
|
return ldb_next_init(module);
|
||||||
} else if (pdc_res->count > 1) {
|
} else if (pdc_res->count > 1) {
|
||||||
@ -108,7 +108,7 @@ static int pdc_fsmo_init(struct ldb_module *module)
|
|||||||
talloc_steal(module, pdc_fsmo);
|
talloc_steal(module, pdc_fsmo);
|
||||||
|
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_TRACE,
|
ldb_debug(module->ldb, LDB_DEBUG_TRACE,
|
||||||
"pdc_fsmo_init: we are master: %s",
|
"pdc_fsmo_init: we are master: %s\n",
|
||||||
(pdc_fsmo->we_are_master?"yes":"no"));
|
(pdc_fsmo->we_are_master?"yes":"no"));
|
||||||
|
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
|
@ -60,7 +60,7 @@ static int schema_fsmo_init(struct ldb_module *module)
|
|||||||
schema_dn = samdb_schema_dn(module->ldb);
|
schema_dn = samdb_schema_dn(module->ldb);
|
||||||
if (!schema_dn) {
|
if (!schema_dn) {
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
||||||
"schema_fsmo_init: no schema dn present: (skip schema loading)");
|
"schema_fsmo_init: no schema dn present: (skip schema loading)\n");
|
||||||
return ldb_next_init(module);
|
return ldb_next_init(module);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ static int schema_fsmo_init(struct ldb_module *module)
|
|||||||
&schema_res);
|
&schema_res);
|
||||||
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
|
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
||||||
"schema_fsmo_init: no schema head present: (skip schema loading)");
|
"schema_fsmo_init: no schema head present: (skip schema loading)\n");
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ldb_next_init(module);
|
return ldb_next_init(module);
|
||||||
} else if (ret != LDB_SUCCESS) {
|
} else if (ret != LDB_SUCCESS) {
|
||||||
@ -105,7 +105,7 @@ static int schema_fsmo_init(struct ldb_module *module)
|
|||||||
talloc_steal(mem_ctx, schema_res);
|
talloc_steal(mem_ctx, schema_res);
|
||||||
if (schema_res->count == 0) {
|
if (schema_res->count == 0) {
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
ldb_debug(module->ldb, LDB_DEBUG_WARNING,
|
||||||
"schema_fsmo_init: no schema head present: (skip schema loading)");
|
"schema_fsmo_init: no schema head present: (skip schema loading)\n");
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ldb_next_init(module);
|
return ldb_next_init(module);
|
||||||
} else if (schema_res->count > 1) {
|
} else if (schema_res->count > 1) {
|
||||||
@ -246,7 +246,7 @@ static int schema_fsmo_init(struct ldb_module *module)
|
|||||||
talloc_steal(module, schema_fsmo);
|
talloc_steal(module, schema_fsmo);
|
||||||
|
|
||||||
ldb_debug(module->ldb, LDB_DEBUG_TRACE,
|
ldb_debug(module->ldb, LDB_DEBUG_TRACE,
|
||||||
"schema_fsmo_init: we are master: %s",
|
"schema_fsmo_init: we are master: %s\n",
|
||||||
(schema_fsmo->we_are_master?"yes":"no"));
|
(schema_fsmo->we_are_master?"yes":"no"));
|
||||||
|
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
|
@ -80,7 +80,7 @@ class Ldb(ldb.Ldb):
|
|||||||
|
|
||||||
def msg(l,text):
|
def msg(l,text):
|
||||||
print text
|
print text
|
||||||
#self.set_debug(msg)
|
self.set_debug(msg)
|
||||||
|
|
||||||
set_credentials = misc.ldb_set_credentials
|
set_credentials = misc.ldb_set_credentials
|
||||||
set_session_info = misc.ldb_set_session_info
|
set_session_info = misc.ldb_set_session_info
|
||||||
|
Reference in New Issue
Block a user