diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-01-09 18:50:30 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-09 18:56:30 +1100 |
commit | 04e82370dbfc742053cd86c39cb9e8210df19651 (patch) | |
tree | b37a076000c8bc97690897aa02306f468ee4c44e /source4 | |
parent | 67d8518f2c5bcb611e569164d31ed760c8965064 (diff) | |
download | samba-04e82370dbfc742053cd86c39cb9e8210df19651.tar.gz samba-04e82370dbfc742053cd86c39cb9e8210df19651.tar.bz2 samba-04e82370dbfc742053cd86c39cb9e8210df19651.zip |
s4-drs: base is_nc_prefix on instanceType
for extended operations comparing to the ncRoot_dn is not correct
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/drsuapi/getncchanges.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index ad35de8833..908060a0dd 100644 --- a/source4/rpc_server/drsuapi/getncchanges.c +++ b/source4/rpc_server/drsuapi/getncchanges.c @@ -102,8 +102,10 @@ static WERROR get_nc_changes_build_object(struct drsuapi_DsReplicaObjectListItem uint32_t *attids; const char *rdn; const struct dsdb_attribute *rdn_sa; + unsigned int instanceType; - if (ldb_dn_compare(ncRoot_dn, msg->dn) == 0) { + instanceType = ldb_msg_find_attr_as_uint(msg, "instanceType", 0); + if (instanceType & INSTANCE_TYPE_IS_NC_HEAD) { obj->is_nc_prefix = true; obj->parent_object_guid = NULL; } else { |