summaryrefslogtreecommitdiff
path: root/source4/rpc_server/drsuapi
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-01 14:06:23 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-01 17:57:47 +0100
commit80995fde5a6b0ba274972676864e1985d990e1ea (patch)
treecd6ec269f551b51c08ac96a90768d5a674e1393f /source4/rpc_server/drsuapi
parentef224aa004d5f1726d8dca020e0ef96d8c58565e (diff)
downloadsamba-80995fde5a6b0ba274972676864e1985d990e1ea.tar.gz
samba-80995fde5a6b0ba274972676864e1985d990e1ea.tar.bz2
samba-80995fde5a6b0ba274972676864e1985d990e1ea.zip
s4:drsuapi RPC server - this resembles more "samdb_is_gc"
Reviewed by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Mar 1 17:57:47 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r--source4/rpc_server/drsuapi/dcesrv_drsuapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
index 63eed63394..5dbb238f02 100644
--- a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
+++ b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
@@ -702,7 +702,7 @@ static WERROR dcesrv_drsuapi_DsGetDomainControllerInfo_1(struct drsuapi_bind_sta
LDB_SCOPE_BASE, attrs_ntds, "objectClass=nTDSDSA");
if (ret == LDB_SUCCESS && res_ntds->count == 1) {
ctr2->array[i].is_gc
- = (ldb_msg_find_attr_as_uint(res_ntds->msgs[0], "options", 0) == 1);
+ = (ldb_msg_find_attr_as_uint(res_ntds->msgs[0], "options", 0) & DS_NTDSDSA_OPT_IS_GC);
ctr2->array[i].ntds_guid
= samdb_result_guid(res_ntds->msgs[0], "objectGUID");
ctr2->array[i].ntds_dn = ldb_dn_get_linearized(res_ntds->msgs[0]->dn);