s4-dsdb_syntax: Be a little bit more chatty when we can't an ATTID in our cache
authorKamen Mazdrashki <kamenim@samba.org>
Wed, 1 Dec 2010 22:32:10 +0000 (00:32 +0200)
committerKamen Mazdrashki <kamenim@samba.org>
Thu, 2 Dec 2010 17:02:54 +0000 (19:02 +0200)
source4/dsdb/schema/schema_syntax.c

index ab37f66478e00e7f1a133b90c951f34e68e931b7..1947a992cb6e3760247b44668726f476a8d0ff72 100644 (file)
@@ -986,6 +986,7 @@ static WERROR _dsdb_syntax_OID_obj_drsuapi_to_ldb(const struct dsdb_syntax_ctx *
 
                c = dsdb_class_by_governsID_id(ctx->schema, v);
                if (!c) {
+                       DEBUG(1,(__location__ ": Unknown governsID 0x%08X\n", v));
                        return WERR_FOOBAR;
                }
 
@@ -1032,12 +1033,13 @@ static WERROR _dsdb_syntax_OID_attr_drsuapi_to_ldb(const struct dsdb_syntax_ctx
 
                /* convert remote ATTID to local ATTID */
                if (!dsdb_syntax_attid_from_remote_attid(ctx, mem_ctx, v, &v)) {
-                       DEBUG(0,(__location__ "Failed to map remote ATTID to local ATTID!\n"));
+                       DEBUG(1,(__location__ ": Failed to map remote ATTID to local ATTID!\n"));
                        return WERR_FOOBAR;
                }
 
                a = dsdb_attribute_by_attributeID_id(ctx->schema, v);
                if (!a) {
+                       DEBUG(1,(__location__ ": Unknown attributeID_id 0x%08X\n", v));
                        return WERR_FOOBAR;
                }