diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-01-04 13:55:15 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-01-04 21:29:01 +0100 |
commit | f016e4d4bd86d34a39822e9fdc0f83dbf67442b7 (patch) | |
tree | 37808d67293b645ad24769c397dc972a95590fad /source3/winbindd | |
parent | c6aedc9750aff42a6d201addf0d4ed745743b9a2 (diff) | |
download | samba-f016e4d4bd86d34a39822e9fdc0f83dbf67442b7.tar.gz samba-f016e4d4bd86d34a39822e9fdc0f83dbf67442b7.tar.bz2 samba-f016e4d4bd86d34a39822e9fdc0f83dbf67442b7.zip |
s3:winbindd: use dcerpc_dssetup_DsRoleGetPrimaryDomainInformation()
metze
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 5 |
1 files changed, 4 insertions, 1 deletions
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", |