git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a268e08
)
s4-schema: More verbose error log when subClassOf is not found in schema
author
Kamen Mazdrashki
<kamenim@samba.org>
Tue, 3 Aug 2010 01:26:57 +0000
(
04:26
+0300)
committer
Kamen Mazdrashki
<kamenim@samba.org>
Tue, 3 Aug 2010 01:29:23 +0000
(
04:29
+0300)
Error message show failing classSchema object
but not the specific value for the failure,
which makes diagnostics by log files really hard.
source4/dsdb/schema/schema_inferiors.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/schema/schema_inferiors.c
b/source4/dsdb/schema/schema_inferiors.c
index e8c4baa21db1c1673a605d001d682abd5e7c68c4..d2c134ea9e911853fc95bf15cd11d5414ce2b7aa 100644
(file)
--- a/
source4/dsdb/schema/schema_inferiors.c
+++ b/
source4/dsdb/schema/schema_inferiors.c
@@
-163,7
+163,9
@@
static int schema_create_subclasses(const struct dsdb_schema *schema)
struct dsdb_class *schema_class2 = discard_const_p(struct dsdb_class,
dsdb_class_by_lDAPDisplayName(schema, schema_class->subClassOf));
if (schema_class2 == NULL) {
- DEBUG(0,("ERROR: no subClassOf for '%s'\n", schema_class->lDAPDisplayName));
+ DEBUG(0,("ERROR: no subClassOf '%s' for '%s'\n",
+ schema_class->subClassOf,
+ schema_class->lDAPDisplayName));
return LDB_ERR_OPERATIONS_ERROR;
}
if (schema_class2 && schema_class != schema_class2) {