git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fe966d
)
s3-libnetapi: try using netr_DsRGetDCNameEx() in DsGetDcName().
author
Günther Deschner
<gd@samba.org>
Wed, 15 Sep 2010 08:11:38 +0000
(10:11 +0200)
committer
Günther Deschner
<gd@samba.org>
Wed, 15 Sep 2010 08:16:01 +0000
(10:16 +0200)
Guenther
source3/lib/netapi/getdc.c
patch
|
blob
|
history
diff --git
a/source3/lib/netapi/getdc.c
b/source3/lib/netapi/getdc.c
index 787b258db924f0773a90963a2b0e5eaa89dce0b1..565ccbc14b8fbd45564f355dbf2aea7668a8834c 100644
(file)
--- 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,