summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-19 12:31:58 -0700
committerAndrew Tridgell <tridge@samba.org>2010-09-19 13:36:02 -0700
commit94694ecf4e3c8df4d3818d24916125f9e85ec6a9 (patch)
treeb50d53360230afc1ec8d8b19caece905b23b882d
parent1555659e7801c1f924dcd58d1c277dbe1191deb0 (diff)
downloadsamba-94694ecf4e3c8df4d3818d24916125f9e85ec6a9.tar.gz
samba-94694ecf4e3c8df4d3818d24916125f9e85ec6a9.tar.bz2
samba-94694ecf4e3c8df4d3818d24916125f9e85ec6a9.zip
s4-libnet: use the right domain name in libnet_lookup
-rw-r--r--source4/libnet/libnet_lookup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/libnet/libnet_lookup.c b/source4/libnet/libnet_lookup.c
index 3677c2a31e..6b8ab6edd4 100644
--- a/source4/libnet/libnet_lookup.c
+++ b/source4/libnet/libnet_lookup.c
@@ -195,10 +195,7 @@ struct tevent_req *libnet_LookupDCs_send(struct libnet_context *ctx,
struct finddcs finddcs_io;
ZERO_STRUCT(finddcs_io);
- finddcs_io.in.domain_name = lpcfg_realm(ctx->lp_ctx);
- if (strcmp(finddcs_io.in.domain_name, "") == 0) {
- finddcs_io.in.domain_name = lpcfg_workgroup(ctx->lp_ctx);
- }
+ finddcs_io.in.domain_name = io->in.domain_name;
finddcs_io.in.minimum_dc_flags = NBT_SERVER_LDAP | NBT_SERVER_DS | NBT_SERVER_WRITABLE;