summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2010-01-07 02:46:25 +0200
committerAndrew Tridgell <tridge@samba.org>2010-01-08 13:03:03 +1100
commita44ae10c77b1eb2276b8c098a245b5b4df4607dd (patch)
treed973b6c6dd6fe01540d20c2a5e1434e338fe4568 /source4/dsdb/schema
parenta7b3891fb5e20fd3a5b9cc9df37d70693836c0e0 (diff)
downloadsamba-a44ae10c77b1eb2276b8c098a245b5b4df4607dd.tar.gz
samba-a44ae10c77b1eb2276b8c098a245b5b4df4607dd.tar.bz2
samba-a44ae10c77b1eb2276b8c098a245b5b4df4607dd.zip
s4/dsdb_schema: fetch msDS-IntId value during SCHEMA replication
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r--source4/dsdb/schema/schema.h1
-rw-r--r--source4/dsdb/schema/schema_init.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema.h b/source4/dsdb/schema/schema.h
index 186f5d5ddb..1a40c45b21 100644
--- a/source4/dsdb/schema/schema.h
+++ b/source4/dsdb/schema/schema.h
@@ -62,6 +62,7 @@ struct dsdb_attribute {
uint32_t attributeID_id;
struct GUID schemaIDGUID;
uint32_t mAPIID;
+ uint32_t msDS_IntId;
struct GUID attributeSecurityGUID;
struct GUID objectGUID;
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c
index 87599a9223..48da80c7f1 100644
--- a/source4/dsdb/schema/schema_init.c
+++ b/source4/dsdb/schema/schema_init.c
@@ -833,6 +833,7 @@ static const struct {
{ "mayContain", "1.2.840.113556.1.2.25" },
{ "defaultSecurityDescriptor", "1.2.840.113556.1.4.224" },
{ "defaultHidingValue", "1.2.840.113556.1.4.518" },
+ { "msDS-IntId", "1.2.840.113556.1.4.1716" },
};
static struct drsuapi_DsReplicaAttribute *dsdb_find_object_attr_name(struct dsdb_schema *schema,
@@ -1020,6 +1021,9 @@ WERROR dsdb_attribute_from_drsuapi(struct ldb_context *ldb,
win_errstr(status)));
return status;
}
+ /* fetch msDS-IntId to be used in resolving ATTRTYP values */
+ GET_UINT32_DS(schema, r, "msDS-IntId", attr, msDS_IntId, 0);
+
GET_GUID_DS(schema, r, "schemaIDGUID", mem_ctx, attr, schemaIDGUID);
GET_UINT32_DS(schema, r, "mAPIID", attr, mAPIID, 0);