From: Andrew Tridgell Date: Fri, 8 Jan 2010 05:57:56 +0000 (+1100) Subject: s4-schema: added some debug for bad attributes X-Git-Tag: samba-4.0.0alpha11~70 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=c93a182a0d14862d960aee57f9af4baabe518549 s4-schema: added some debug for bad attributes --- diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c index 99d41069b76..77b4e2a4736 100644 --- a/source4/dsdb/schema/schema_init.c +++ b/source4/dsdb/schema/schema_init.c @@ -619,10 +619,14 @@ WERROR dsdb_attribute_from_ldb(struct ldb_context *ldb, attr->syntax = dsdb_syntax_for_attribute(attr); if (!attr->syntax) { + DEBUG(0,(__location__ ": Unknown schema syntax for %s\n", + attr->lDAPDisplayName)); return WERR_DS_ATT_SCHEMA_REQ_SYNTAX; } if (dsdb_schema_setup_ldb_schema_attribute(ldb, attr) != LDB_SUCCESS) { + DEBUG(0,(__location__ ": Unknown schema syntax for %s\n", + attr->lDAPDisplayName)); return WERR_DS_ATT_SCHEMA_REQ_SYNTAX; } @@ -1064,10 +1068,14 @@ WERROR dsdb_attribute_from_drsuapi(struct ldb_context *ldb, attr->syntax = dsdb_syntax_for_attribute(attr); if (!attr->syntax) { + DEBUG(0,(__location__ ": Unknown schema syntax for %s\n", + attr->lDAPDisplayName)); return WERR_DS_ATT_SCHEMA_REQ_SYNTAX; } if (dsdb_schema_setup_ldb_schema_attribute(ldb, attr) != LDB_SUCCESS) { + DEBUG(0,(__location__ ": Unknown schema syntax for %s\n", + attr->lDAPDisplayName)); return WERR_DS_ATT_SCHEMA_REQ_SYNTAX; }