summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-11-30 12:15:53 +0200
committerKamen Mazdrashki <kamenim@samba.org>2010-12-01 13:01:17 +0200
commit23b4408a6210363a11c4df12b6b737f94026d20d (patch)
treedf59ca7502dbeadf07ef1f9f1460a323916b0488 /source4/dsdb/schema
parent29f9249bd64a1873149e3857483c64b897deac13 (diff)
downloadsamba-23b4408a6210363a11c4df12b6b737f94026d20d.tar.gz
samba-23b4408a6210363a11c4df12b6b737f94026d20d.tar.bz2
samba-23b4408a6210363a11c4df12b6b737f94026d20d.zip
s4-dsdb/syntax: Map remote ATTIDs for Attribute OID syntax
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r--source4/dsdb/schema/schema_syntax.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c
index 9ef2e32d14..ab37f66478 100644
--- a/source4/dsdb/schema/schema_syntax.c
+++ b/source4/dsdb/schema/schema_syntax.c
@@ -1030,6 +1030,12 @@ static WERROR _dsdb_syntax_OID_attr_drsuapi_to_ldb(const struct dsdb_syntax_ctx
v = IVAL(in->value_ctr.values[i].blob->data, 0);
+ /* 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"));
+ return WERR_FOOBAR;
+ }
+
a = dsdb_attribute_by_attributeID_id(ctx->schema, v);
if (!a) {
return WERR_FOOBAR;