s4-schema_syntax: We should use make_ATTID function when converting remote-ATTID...
authorKamen Mazdrashki <kamenim@samba.org>
Fri, 10 Dec 2010 02:03:00 +0000 (04:03 +0200)
committerKamen Mazdrashki <kamenim@samba.org>
Tue, 14 Dec 2010 23:51:19 +0000 (00:51 +0100)
We may have no prefix for the remote ATTID (remote OID strictly speaking)
So this is the place for us to update our local prefixMap
adding a prefix for the numeric OID we've recived

source4/dsdb/schema/schema_syntax.c

index 1c30065618e5110cec4eb26c488b94bf2b529b01..713edbb54621b4d3aeb454dc205fa5d55088cad2 100644 (file)
@@ -97,7 +97,7 @@ static bool dsdb_syntax_attid_from_remote_attid(const struct dsdb_syntax_ctx *ct
                return false;
        }
 
-       werr = dsdb_schema_pfm_attid_from_oid(ctx->schema->prefixmap, oid, id_local);
+       werr = dsdb_schema_pfm_make_attid(ctx->schema->prefixmap, oid, id_local);
        if (!W_ERROR_IS_OK(werr)) {
                DEBUG(0,("OID->ATTID failed (%s) for: %s\n", win_errstr(werr), oid));
                return false;