summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-15 10:11:38 +0200
committerGünther Deschner <gd@samba.org>2010-09-15 10:16:01 +0200
commitbbdbb0cbcc3de9a3188b77c2d34cf46a33bbe980 (patch)
tree3adf4f7287cc1cf93906cc53947325b7b9ade040 /source3/lib/netapi
parent3fe966d28003f8a09a29c9a9051672e0e066e7b6 (diff)
downloadsamba-bbdbb0cbcc3de9a3188b77c2d34cf46a33bbe980.tar.gz
samba-bbdbb0cbcc3de9a3188b77c2d34cf46a33bbe980.tar.bz2
samba-bbdbb0cbcc3de9a3188b77c2d34cf46a33bbe980.zip
s3-libnetapi: try using netr_DsRGetDCNameEx() in DsGetDcName().
Guenther
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/getdc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/lib/netapi/getdc.c b/source3/lib/netapi/getdc.c
index 787b258db9..565ccbc14b 100644
--- a/source3/lib/netapi/getdc.c
+++ b/source3/lib/netapi/getdc.c
@@ -146,6 +146,19 @@ WERROR DsGetDcName_r(struct libnetapi_ctx *ctx,
goto done;
}
+ status = rpccli_netr_DsRGetDCNameEx(pipe_cli,
+ ctx,
+ r->in.server_name,
+ r->in.domain_name,
+ r->in.domain_guid,
+ r->in.site_name,
+ r->in.flags,
+ (struct netr_DsRGetDCNameInfo **)r->out.dc_info,
+ &werr);
+ if (NT_STATUS_IS_OK(status)) {
+ goto done;
+ }
+
status = rpccli_netr_DsRGetDCName(pipe_cli,
ctx,
r->in.server_name,