From f016e4d4bd86d34a39822e9fdc0f83dbf67442b7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 4 Jan 2011 13:55:15 +0100 Subject: s3:winbindd: use dcerpc_dssetup_DsRoleGetPrimaryDomainInformation() metze --- source3/winbindd/winbindd_cm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index d5642a3889..6ec6861ea2 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -1861,12 +1861,15 @@ static void set_dc_type_and_flags_connect( struct winbindd_domain *domain ) goto no_dssetup; } - result = rpccli_dssetup_DsRoleGetPrimaryDomainInformation(cli, mem_ctx, + result = dcerpc_dssetup_DsRoleGetPrimaryDomainInformation(cli->binding_handle, mem_ctx, DS_ROLE_BASIC_INFORMATION, &info, &werr); TALLOC_FREE(cli); + if (NT_STATUS_IS_OK(result)) { + result = werror_to_ntstatus(werr); + } if (!NT_STATUS_IS_OK(result)) { DEBUG(5, ("set_dc_type_and_flags_connect: rpccli_ds_getprimarydominfo " "on domain %s failed: (%s)\n", -- cgit