diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-19 12:31:58 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-19 13:36:02 -0700 |
commit | 94694ecf4e3c8df4d3818d24916125f9e85ec6a9 (patch) | |
tree | b50d53360230afc1ec8d8b19caece905b23b882d /source4/libnet | |
parent | 1555659e7801c1f924dcd58d1c277dbe1191deb0 (diff) | |
download | samba-94694ecf4e3c8df4d3818d24916125f9e85ec6a9.tar.gz samba-94694ecf4e3c8df4d3818d24916125f9e85ec6a9.tar.bz2 samba-94694ecf4e3c8df4d3818d24916125f9e85ec6a9.zip |
s4-libnet: use the right domain name in libnet_lookup
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_lookup.c | 5 |
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; |