diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-08-03 04:26:57 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-08-03 04:29:23 +0300 |
commit | f8279045964cd0140be23b436ead1169096a8d18 (patch) | |
tree | 619140cf0b446c0d1718df09a88d21812589402e /source4 | |
parent | a268e0846f1bc37a3dd63d2085884edc91b83e2a (diff) | |
download | samba-f8279045964cd0140be23b436ead1169096a8d18.tar.gz samba-f8279045964cd0140be23b436ead1169096a8d18.tar.bz2 samba-f8279045964cd0140be23b436ead1169096a8d18.zip |
s4-schema: More verbose error log when subClassOf is not found in schema
Error message show failing classSchema object
but not the specific value for the failure,
which makes diagnostics by log files really hard.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/schema/schema_inferiors.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_inferiors.c b/source4/dsdb/schema/schema_inferiors.c index e8c4baa21d..d2c134ea9e 100644 --- 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) { |