summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-09-20 21:31:20 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-09-21 00:15:24 +0300
commit395b09c1b6ac9df42202966d90b1a121712df418 (patch)
treec2ff935cd7f865f05b40f67be3811b909015ce6c
parent0740d0ae85870a6b392cb3ab6cbc3fb36ed3714c (diff)
downloadsamba-395b09c1b6ac9df42202966d90b1a121712df418.tar.gz
samba-395b09c1b6ac9df42202966d90b1a121712df418.tar.bz2
samba-395b09c1b6ac9df42202966d90b1a121712df418.zip
s4-dsdb-schema_prefixmap: Print debug message when internal failure occurs
-rw-r--r--source4/dsdb/schema/schema_prefixmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema_prefixmap.c b/source4/dsdb/schema/schema_prefixmap.c
index 8105f1274d..7151c55b9e 100644
--- a/source4/dsdb/schema/schema_prefixmap.c
+++ b/source4/dsdb/schema/schema_prefixmap.c
@@ -188,6 +188,7 @@ static WERROR _dsdb_pfm_make_binary_oid(const char *full_oid, TALLOC_CTX *mem_ct
/* encode oid in BER format */
if (!ber_write_OID_String(mem_ctx, _bin_oid, full_oid)) {
+ DEBUG(0,("ber_write_OID_String() failed for %s\n", full_oid));
return WERR_INTERNAL_ERROR;
}
@@ -341,6 +342,8 @@ WERROR dsdb_schema_pfm_oid_from_attid(struct dsdb_schema_prefixmap *pfm, uint32_
}
if (!pfm_entry) {
+ DEBUG(1,("Failed to find prefixMap entry for ATTID = 0x%08X (%d)\n",
+ attid, attid));
return WERR_INTERNAL_ERROR;
}
@@ -363,6 +366,8 @@ WERROR dsdb_schema_pfm_oid_from_attid(struct dsdb_schema_prefixmap *pfm, uint32_
}
if (!ber_read_OID_String(mem_ctx, bin_oid, _oid)) {
+ DEBUG(0,("ber_read_OID_String() failed for %s\n",
+ hex_encode_talloc(bin_oid.data, bin_oid.data, bin_oid.length)));
werr = WERR_INTERNAL_ERROR;
}